From 430c0e4ad17769240c4838c81106bab7041d0b02 Mon Sep 17 00:00:00 2001 From: Maximilian Mader Date: Wed, 10 Dec 2014 00:24:23 +0100 Subject: [PATCH] Use ArrayUtil::toIntegerArray() on $this->parameters['recipients'] --- file/lib/data/user/UserAction.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/file/lib/data/user/UserAction.class.php b/file/lib/data/user/UserAction.class.php index 7f65653..7153c1d 100644 --- a/file/lib/data/user/UserAction.class.php +++ b/file/lib/data/user/UserAction.class.php @@ -60,6 +60,6 @@ public function validateInvite() { * Invites users. */ public function invite() { - \wcf\system\user\notification\UserNotificationHandler::getInstance()->fireEvent('invited', 'be.bastelstu.chat.room', new \chat\system\user\notification\object\RoomUserNotificationObject($this->room), $this->parameters['recipients'], array('userID' => WCF::getUser()->userID)); + \wcf\system\user\notification\UserNotificationHandler::getInstance()->fireEvent('invited', 'be.bastelstu.chat.room', new \chat\system\user\notification\object\RoomUserNotificationObject($this->room), \wcf\util\ArrayUtil::toIntegerArray($this->parameters['recipients']), array('userID' => WCF::getUser()->userID)); } }