forked from mirrors/easyappointments
The search processor must check for occurences inside strings and not for a complete match.
This commit is contained in:
parent
6f25d3af17
commit
17e74d80eb
1 changed files with 1 additions and 1 deletions
|
@ -55,7 +55,7 @@ class Search implements ProcessorsInterface {
|
|||
foreach ($haystack as $key => $value) {
|
||||
$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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue