From e68a8f419db460f06e2d6a9604c85b4e33d2e510 Mon Sep 17 00:00:00 2001 From: Seamus Lee Date: Thu, 20 Apr 2023 13:26:15 +1000 Subject: [PATCH] dev/core#4249 Ensure that no deprecation logging occurs from groupPermission having includeGroups as NULL rather than an empty array --- CRM/ACL/API.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/ACL/API.php b/CRM/ACL/API.php index 1bafc8b8b6..d9739d48d7 100644 --- a/CRM/ACL/API.php +++ b/CRM/ACL/API.php @@ -196,7 +196,7 @@ class CRM_ACL_API { $key = "{$tableName}_{$type}_{$contactID}"; if (!array_key_exists($key, Civi::$statics[__CLASS__]['group_permission'])) { - Civi::$statics[__CLASS__]['group_permission'][$key] = self::group($type, $contactID, $tableName, $allGroups, $includedGroups); + Civi::$statics[__CLASS__]['group_permission'][$key] = self::group($type, $contactID, $tableName, $allGroups, $includedGroups ?? []); } return in_array($groupID, Civi::$statics[__CLASS__]['group_permission'][$key]); -- 2.25.1