X-Git-Url: http://git.typo3.org/Packages/TYPO3.CMS.git/blobdiff_plain/6667112c3b49a2da2a2730d2c7d597e4f377e3d8..7818052a34d3ef522de2ccdafc47a7cda3085a14:/typo3/sysext/workspaces/Classes/ExtDirect/ActionHandler.php diff --git a/typo3/sysext/workspaces/Classes/ExtDirect/ActionHandler.php b/typo3/sysext/workspaces/Classes/ExtDirect/ActionHandler.php index ca776f7b378a..b0fc4be7a605 100644 --- a/typo3/sysext/workspaces/Classes/ExtDirect/ActionHandler.php +++ b/typo3/sysext/workspaces/Classes/ExtDirect/ActionHandler.php @@ -317,15 +317,16 @@ class Tx_Workspaces_ExtDirect_ActionHandler extends Tx_Workspaces_ExtDirect_Abst $cmdMapArray = array(); $comment = $parameters->comments; $stageId = $parameters->stageId; - $recipients = $this->getRecipientList($parameters->receipients, $parameters->additional); - if (t3lib_div::testInt($stageId) === FALSE) { - throw new InvalidArgumentException('Missing "stageId" in $parameters array.'); + if (t3lib_utility_Math::canBeInterpretedAsInteger($stageId) === FALSE) { + throw new InvalidArgumentException('Missing "stageId" in $parameters array.', 1319488194); } - - if (! is_array($parameters->affects) && count($parameters->affects) == 0) { - throw new InvalidArgumentException('Missing "affected items" in $parameters array.'); + if (!is_array($parameters->affects) || count($parameters->affects) == 0) { + throw new InvalidArgumentException('Missing "affected items" in $parameters array.', 1319488195); } + + $recipients = $this->getRecipientList($parameters->receipients, $parameters->additional, $stageId); + foreach ($parameters->affects as $tableName => $items) { foreach ($items as $item) { if ($stageId == Tx_Workspaces_Service_Stages::STAGE_PUBLISH_EXECUTE_ID) {