Commit e335d058 authored by Karl Hasselbring's avatar Karl Hasselbring
Browse files

Fixed: Nicht eigene Suchen werden jetzt wieder ausgeführt

parent 501f1f1f
......@@ -481,7 +481,7 @@ class MetaGer
$overtureEnabled = false;
$sumaCount = 0;
$isCustomSearch = strpos($this->fokus, 'focus_') == 0;
$isCustomSearch = $this->startsWith($this->fokus, 'focus_');
/* Erstellt die Liste der eingestellten Sumas
* Der einzige Unterschied bei angepasstem Suchfokus ist,
......@@ -1183,6 +1183,11 @@ class MetaGer
}
# Hilfsfunktionen
public function startsWith($haystack, $needle)
{
$length = strlen($needle);
return (substr($haystack, 0, $length) === $needle);
}
public function removeInvalids()
{
......
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