Skip to content

Commit

Permalink
Merge pull request #15092 from christianwach/lab-1196
Browse files Browse the repository at this point in the history
Fix recursion in crmInArray()
  • Loading branch information
colemanw authored Aug 21, 2019
2 parents 79c32ad + 48b7f66 commit 8236a8b
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 8236a8b

Please sign in to comment.