mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-11-25 01:12: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;
|
$currentKey = $key;
|
||||||
|
|
||||||
if (stripos($value, $needle) !== FALSE || (is_array($value) && self::_recursiveArraySearch($value,
|
if (is_array($value) && self::_recursiveArraySearch($value, $needle) !== FALSE)
|
||||||
$needle) !== FALSE))
|
{
|
||||||
|
return $currentKey;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (is_string($value) && stripos($value, $needle) !== FALSE)
|
||||||
{
|
{
|
||||||
return $currentKey;
|
return $currentKey;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue