Skip to content
Snippets Groups Projects
Commit 79292ba1 authored by Dominik Hebeler's avatar Dominik Hebeler
Browse files

Bug behoben, bei dem eine Funktion mit leerem String aufgerufen wurde

parent 35b1e2a8
No related branches found
No related tags found
1 merge request!1365Resolve "Filter Options for MetaGer"
...@@ -81,6 +81,8 @@ class Result ...@@ -81,6 +81,8 @@ class Result
#die($tmpLi . "<br>" . $link . "<br>" . $tmpEingabe . "<br><br>"); #die($tmpLi . "<br>" . $link . "<br>" . $tmpEingabe . "<br><br>");
foreach(str_split($tmpEingabe) as $char) foreach(str_split($tmpEingabe) as $char)
{ {
if( !$char || !$tmpEingabe || strlen($tmpEingabe) === 0 || strlen($char) === 0 )
continue;
if(strpos(strtolower($tmpLink), strtolower($char)) >= 0) if(strpos(strtolower($tmpLink), strtolower($char)) >= 0)
{ {
$count++; $count++;
......
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