Fix search that worked only for lowercase queries

firefly-iii/firefly-iii#798
This commit is contained in:
koziolek
2017-09-02 20:38:56 +02:00
parent 95e91b9af8
commit 682f9283a6

View File

@@ -236,7 +236,7 @@ class Search implements SearchInterface
return false;
}
foreach ($needle as $what) {
if (strpos($haystack, $what) !== false) {
if (stripos($haystack, $what) !== false) {
return true;
}
}