Commit 4c2dce2f authored by Dominik Hebeler's avatar Dominik Hebeler

Fixed Error in product search

parent a1a98edf
......@@ -16,6 +16,9 @@ class ProdSearch extends Searchengine
public function loadResults($result)
{
$results = json_decode($result, true);
if ($results === null) {
return;
}
foreach ($results as $result) {
if ($this->counter >= 10) {
break;
......@@ -41,7 +44,7 @@ class ProdSearch extends Searchengine
$link,
$anzeigeLink,
$descr,
$this->engine->{"display-name"},$this->engine->homepage,
$this->engine->{"display-name"}, $this->engine->homepage,
$this->counter,
[
'price' => $price,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment