Fixed notification handler issue
authorMarcel Werk <burntime@woltlab.com>
Sun, 9 Jun 2013 21:44:50 +0000 (23:44 +0200)
committerMarcel Werk <burntime@woltlab.com>
Sun, 9 Jun 2013 21:44:50 +0000 (23:44 +0200)
wcfsetup/install/files/lib/system/user/notification/UserNotificationHandler.class.php

index 6756049d60c62408c53e8e103c093d395ec45e42..ea1c2897483e419dd0a5b6002242ee77856a01cd 100644 (file)
@@ -132,7 +132,7 @@ class UserNotificationHandler extends SingletonFactory {
                                                'packageID' => $objectTypeObject->packageID,
                                                'eventID' => $event->eventID,
                                                'objectID' => $notificationObject->getObjectID(),
-                                               'authorID' => $event->getAuthorID(),
+                                               'authorID' => ($event->getAuthorID() ?: null),
                                                'time' => TIME_NOW,
                                                'eventHash' => $event->getEventHash(),
                                                'additionalData' => serialize($additionalData)