Skip to content

Commit

Permalink
Fix recursion in crmInArray()
Browse files Browse the repository at this point in the history
  • Loading branch information
christianwach committed Aug 21, 2019
1 parent 79c32ad commit 48b7f66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CRM/Utils/Array.php
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ public static function isSubset($subset, $superset) {
public static function crmInArray($value, $params, $caseInsensitive = TRUE) {
foreach ($params as $item) {
if (is_array($item)) {
$ret = crmInArray($value, $item, $caseInsensitive);
$ret = self::crmInArray($value, $item, $caseInsensitive);
}
else {
$ret = ($caseInsensitive) ? strtolower($item) == strtolower($value) : $item == $value;
Expand Down

0 comments on commit 48b7f66

Please sign in to comment.