From cfbfccfcee1b7121aae6a47c1a1cb61c8d435598 Mon Sep 17 00:00:00 2001 From: Matthew Wire Date: Sun, 5 Jul 2020 17:38:00 +0100 Subject: [PATCH] Fix PHP notice on wordpress ACL permissions form --- CRM/ACL/Form/WordPress/Permissions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/ACL/Form/WordPress/Permissions.php b/CRM/ACL/Form/WordPress/Permissions.php index de224f26a4..a59131ffeb 100644 --- a/CRM/ACL/Form/WordPress/Permissions.php +++ b/CRM/ACL/Form/WordPress/Permissions.php @@ -135,7 +135,7 @@ class CRM_ACL_Form_WordPress_Permissions extends CRM_Core_Form { } //Add the selected wordpress capabilities for the role - $rolePermissions = $params[$role]; + $rolePermissions = $params[$role] ?? []; if (!empty($rolePermissions)) { foreach ($rolePermissions as $key => $capability) { $roleObj->add_cap($key); -- 2.25.1