From fe94174c0fd20f248f2703bceb123878dafb1c50 Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Thu, 14 Jul 2016 17:07:29 +0200 Subject: [PATCH] Replaced empty UserNotification object before sending email notifications --- .../user/notification/UserNotificationHandler.class.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/wcfsetup/install/files/lib/system/user/notification/UserNotificationHandler.class.php b/wcfsetup/install/files/lib/system/user/notification/UserNotificationHandler.class.php index 815fde6062..ce8ef8d62c 100644 --- a/wcfsetup/install/files/lib/system/user/notification/UserNotificationHandler.class.php +++ b/wcfsetup/install/files/lib/system/user/notification/UserNotificationHandler.class.php @@ -230,6 +230,10 @@ class UserNotificationHandler extends SingletonFactory { foreach ($recipients as $recipient) { if ($recipient->mailNotificationType == 'instant') { if (isset($notifications[$recipient->userID]) && $notifications[$recipient->userID]['isNew']) { + // update UserNotification object + $event->setObject($notifications[$recipient->userID]['object'], $notificationObject, $userProfile, $additionalData); + + // send notification $this->sendInstantMailNotification($notifications[$recipient->userID]['object'], $recipient, $event); } } -- 2.20.1