Skip to content
Snippets Groups Projects
Commit 248ed39a 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 ffb1de66 46a310fb
No related branches found
No related tags found
1 merge request!76Fixed a Bug where "Witch" returned an empty result
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment