Commit 46a310fb authored by Dominik Hebeler's avatar Dominik Hebeler

Fixed a Bug where "Witch" returned an empty result

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