Fixed a reference error in NotificationHandler
authorAlexander Ebert <ebert@woltlab.com>
Thu, 3 Sep 2015 23:16:49 +0000 (01:16 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Thu, 3 Sep 2015 23:16:49 +0000 (01:16 +0200)
wcfsetup/install/files/lib/system/user/notification/UserNotificationHandler.class.php

index da8d676891e284de24a42df6c71b1f41b8d27860..c2607100e0ec2b19f5999278a51edbbd85a15466 100644 (file)
@@ -106,7 +106,7 @@ class UserNotificationHandler extends SingletonFactory {
                // set object data
                $event->setObject(new UserNotification(null, array()), $notificationObject, $userProfile, $additionalData);
                
-               EventHandler::getInstance()->fireAction($this, 'fireEvent', array(
+               $parameters = array(
                        'eventName' => $eventName,
                        'objectType' => $objectType,
                        'notificationObject' => $notificationObject,
@@ -116,7 +116,8 @@ class UserNotificationHandler extends SingletonFactory {
                        'objectTypeObject' => $objectTypeObject,
                        'userProfile' => $userProfile,
                        'event' => $event
-               ));
+               );
+               EventHandler::getInstance()->fireAction($this, 'fireEvent', $parameters);
                
                // find existing notifications
                $conditions = new PreparedStatementConditionBuilder();