From: Matthias Schmidt Date: Sun, 3 Mar 2013 14:35:03 +0000 (+0100) Subject: Cleans up AbstractDatabaseObjectAction X-Git-Tag: 2.0.0_Beta_1~444^2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=351d836a9f6f4c203a550abc509e71d6e4c8d669;p=GitHub%2FWoltLab%2FWCF.git Cleans up AbstractDatabaseObjectAction --- diff --git a/wcfsetup/install/files/lib/data/AbstractDatabaseObjectAction.class.php b/wcfsetup/install/files/lib/data/AbstractDatabaseObjectAction.class.php index c89d4ba192..2a10f27f36 100644 --- a/wcfsetup/install/files/lib/data/AbstractDatabaseObjectAction.class.php +++ b/wcfsetup/install/files/lib/data/AbstractDatabaseObjectAction.class.php @@ -166,8 +166,8 @@ abstract class AbstractDatabaseObjectAction implements IDatabaseObjectAction, ID // execute action if (!method_exists($this, $this->getActionName())) { throw new SystemException("call to undefined function '".$this->getActionName()."'"); - } - + } + $this->returnValues = call_user_func(array($this, $this->getActionName())); // reset cache @@ -281,7 +281,7 @@ abstract class AbstractDatabaseObjectAction implements IDatabaseObjectAction, ID // read objects if (empty($this->objects)) { $this->readObjects(); - + if (empty($this->objects)) { throw new UserInputException('objectIDs'); } @@ -290,7 +290,7 @@ abstract class AbstractDatabaseObjectAction implements IDatabaseObjectAction, ID /** * Creates new database object. - * + * * @return wcf\data\DatabaseObject */ public function create() {