From 0cb220e918b18ab449cedc410b330f134dd13be9 Mon Sep 17 00:00:00 2001 From: Cyperghost Date: Tue, 21 May 2024 10:45:48 +0200 Subject: [PATCH] An error occurred when saving the ACL permission if no ACL option was available in `$options` --- wcfsetup/install/files/lib/system/acl/ACLHandler.class.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/wcfsetup/install/files/lib/system/acl/ACLHandler.class.php b/wcfsetup/install/files/lib/system/acl/ACLHandler.class.php index f0e6b7e0ac..6fc3407ecd 100644 --- a/wcfsetup/install/files/lib/system/acl/ACLHandler.class.php +++ b/wcfsetup/install/files/lib/system/acl/ACLHandler.class.php @@ -248,6 +248,9 @@ class ACLHandler extends SingletonFactory protected function replaceValues(ACLOptionList $optionList, $type, $objectID) { $options = $optionList->getObjects(); + if ($options === []) { + return; + } // remove previous values $conditions = new PreparedStatementConditionBuilder(); -- 2.20.1