From: Marcel Werk Date: Thu, 14 Jul 2016 15:07:29 +0000 (+0200) Subject: Replaced empty UserNotification object before sending email notifications X-Git-Tag: 3.0.0_Beta_1~1141 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=fe94174c0fd20f248f2703bceb123878dafb1c50;p=GitHub%2FWoltLab%2FWCF.git Replaced empty UserNotification object before sending email notifications --- 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); } }