mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-11-21 23:42:21 +03:00
Corrected if statements for recursive search when aggregates are enabled (#549).
This commit is contained in:
parent
fff57ad3f3
commit
22f4a11493
1 changed files with 6 additions and 2 deletions
|
@ -61,8 +61,12 @@ class Search implements ProcessorsInterface {
|
|||
{
|
||||
$currentKey = $key;
|
||||
|
||||
if (stripos($value, $needle) !== FALSE || (is_array($value) && self::_recursiveArraySearch($value,
|
||||
$needle) !== FALSE))
|
||||
if (is_array($value) && self::_recursiveArraySearch($value, $needle) !== FALSE)
|
||||
{
|
||||
return $currentKey;
|
||||
}
|
||||
|
||||
if (is_string($value) && stripos($value, $needle) !== FALSE)
|
||||
{
|
||||
return $currentKey;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue