From: Alexander Ebert Date: Mon, 18 Feb 2013 14:28:26 +0000 (+0100) Subject: Empty object id is now properly handled X-Git-Tag: 2.0.0_Beta_1~469^2~1 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=099991ccd68a57f098037794222013fb58d2e669;p=GitHub%2FWoltLab%2FWCF.git Empty object id is now properly handled --- 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;