The search processor must check for occurences inside strings and not for a complete match.

This commit is contained in:
Alex Tselegidis 2016-07-10 13:16:52 +02:00
parent 6f25d3af17
commit 17e74d80eb

View file

@ -55,7 +55,7 @@ class Search implements ProcessorsInterface {
foreach ($haystack as $key => $value) { foreach ($haystack as $key => $value) {
$currentKey = $key; $currentKey = $key;
if ($needle === $value || (is_array($value) && self::_recursiveArraySearch($value, $needle) !== false)) { if (strpos($value, $needle) !== false || (is_array($value) && self::_recursiveArraySearch($value, $needle) !== false)) {
return $currentKey; return $currentKey;
} }
} }