Fixed wrong option type name
authorMarcel Werk <burntime@woltlab.com>
Wed, 18 Jan 2017 17:30:21 +0000 (18:30 +0100)
committerMarcel Werk <burntime@woltlab.com>
Wed, 18 Jan 2017 17:30:21 +0000 (18:30 +0100)
wcfsetup/install/files/lib/data/comment/CommentAction.class.php

index baa832c58c4ae07647f0a5c2258a04975145ca78..2918c9cbc91f59d06cfc5fa937f304ed339e60b6 100644 (file)
@@ -355,8 +355,8 @@ class CommentAction extends AbstractDatabaseObjectAction {
                }
                
                // fire notification event
-               if (UserNotificationHandler::getInstance()->getObjectTypeID($objectType->objectType.'.response.notification')) {
-                       $notificationObjectType = UserNotificationHandler::getInstance()->getObjectTypeProcessor($objectType->objectType.'.response.notification');
+               if (UserNotificationHandler::getInstance()->getObjectTypeID($objectType->objectType.'.response.notification') && UserNotificationHandler::getInstance()->getObjectTypeID($objectType->objectType.'.notification')) {
+                       $notificationObjectType = UserNotificationHandler::getInstance()->getObjectTypeProcessor($objectType->objectType.'.notification');
                        $userID = $notificationObjectType->getOwnerID($this->comment->commentID);
                        
                        $notificationObject = new CommentResponseUserNotificationObject($this->createdResponse);