From d730c8f09b074ce6109a2d6657db2c59b578f7a5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Fri, 1 Aug 2014 22:55:35 +0200 Subject: [PATCH] Use temporary variable for event parameters in QuickReplyManager --- .../files/lib/system/message/QuickReplyManager.class.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/system/message/QuickReplyManager.class.php b/wcfsetup/install/files/lib/system/message/QuickReplyManager.class.php index b0f1016fee..5b699ee67d 100644 --- a/wcfsetup/install/files/lib/system/message/QuickReplyManager.class.php +++ b/wcfsetup/install/files/lib/system/message/QuickReplyManager.class.php @@ -194,7 +194,8 @@ class QuickReplyManager extends SingletonFactory { } $message = $object->create(); - EventHandler::getInstance()->fireAction($this, 'createdMessage', array('message' => $message)); + $eventParameters = array('message' => $message); + EventHandler::getInstance()->fireAction($this, 'createdMessage', $eventParameters); if ($message instanceof IMessage && !$message->isVisible()) { return array( -- 2.20.1