An error occurred when saving the ACL permission if no ACL option was available in...
authorCyperghost <olaf_schmitz_1@t-online.de>
Tue, 21 May 2024 08:45:48 +0000 (10:45 +0200)
committerCyperghost <olaf_schmitz_1@t-online.de>
Tue, 21 May 2024 08:45:48 +0000 (10:45 +0200)
wcfsetup/install/files/lib/system/acl/ACLHandler.class.php

index f0e6b7e0ac8453a988961a062df3ae2e8bb243f4..6fc3407ecd2c8e81f36dd97fb7f801225fea41f9 100644 (file)
@@ -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();