Corrected if statements for recursive search when aggregates are enabled (#549).

This commit is contained in:
Alex Tselegidis 2020-03-27 10:20:41 +01:00
parent fff57ad3f3
commit 22f4a11493

View file

@ -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;
} }