From 099991ccd68a57f098037794222013fb58d2e669 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Mon, 18 Feb 2013 15:28:26 +0100 Subject: [PATCH] Empty object id is now properly handled --- .../files/lib/data/acl/option/ACLOptionAction.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wcfsetup/install/files/lib/data/acl/option/ACLOptionAction.class.php b/wcfsetup/install/files/lib/data/acl/option/ACLOptionAction.class.php index 690b737208..7ce37fa186 100644 --- a/wcfsetup/install/files/lib/data/acl/option/ACLOptionAction.class.php +++ b/wcfsetup/install/files/lib/data/acl/option/ACLOptionAction.class.php @@ -23,7 +23,7 @@ class ACLOptionAction extends AbstractDatabaseObjectAction { * Validates parameters for ACL options. */ public function validateLoadAll() { - $this->readInteger('objectID', true); + $this->readInteger('objectID', false); $this->readInteger('objectTypeID'); $this->readString('categoryName', true); } @@ -34,7 +34,7 @@ class ACLOptionAction extends AbstractDatabaseObjectAction { * @return array */ public function loadAll() { - $objectIDs = (isset($this->parameters['objectID'])) ? array($this->parameters['objectID']) : array(); + $objectIDs = ($this->parameters['objectID']) ? array($this->parameters['objectID']) : array(); $permissions = ACLHandler::getInstance()->getPermissions($this->parameters['objectTypeID'], $objectIDs, $this->parameters['categoryName'], true); return $permissions; -- 2.20.1