Commit 73ebac46 authored by Dominik Hebeler's avatar Dominik Hebeler
Browse files

Merge branch 'Bugfix' into 'master'

Fixed a Bug where "Witch" returned an empty result



See merge request !76
parents e7b92405 13532373
...@@ -15,15 +15,14 @@ class Witch extends Searchengine ...@@ -15,15 +15,14 @@ class Witch extends Searchengine
public function loadResults ($result) public function loadResults ($result)
{ {
$result = html_entity_decode(trim(utf8_encode($result))); $result = html_entity_decode(trim(utf8_encode($result)));
$results = explode("\n", $result); $results = explode("\n", $result);
array_shift($results); array_shift($results);
foreach($results as $res) foreach($results as $res)
{ {
$res = explode(";", $res); $res = explode(";", $res);
if(sizeof($res) !== 4) if(sizeof($res) !== 4 || $res[3] === "'Kein Ergebnis'")
{ {
continue; continue;
} }
......
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