From 46a310fbc9d9726c6d419a3794f28e297ba29db1 Mon Sep 17 00:00:00 2001 From: Dominik Pfennig <dominik@suma-ev.de> Date: Fri, 10 Jun 2016 11:01:39 +0200 Subject: [PATCH] Fixed a Bug where "Witch" returned an empty result --- app/Models/parserSkripte/Witch.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/Models/parserSkripte/Witch.php b/app/Models/parserSkripte/Witch.php index 3ed1771f7..d87851c7f 100644 --- a/app/Models/parserSkripte/Witch.php +++ b/app/Models/parserSkripte/Witch.php @@ -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; } -- GitLab