From 351d836a9f6f4c203a550abc509e71d6e4c8d669 Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Sun, 3 Mar 2013 15:35:03 +0100 Subject: [PATCH] Cleans up AbstractDatabaseObjectAction --- .../files/lib/data/AbstractDatabaseObjectAction.class.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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() { -- 2.20.1