From 948d412ac09c0f576592947f0d0b45acf1af2a72 Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Wed, 18 Jan 2017 18:30:21 +0100 Subject: [PATCH] Fixed wrong option type name --- .../install/files/lib/data/comment/CommentAction.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wcfsetup/install/files/lib/data/comment/CommentAction.class.php b/wcfsetup/install/files/lib/data/comment/CommentAction.class.php index baa832c58c..2918c9cbc9 100644 --- a/wcfsetup/install/files/lib/data/comment/CommentAction.class.php +++ b/wcfsetup/install/files/lib/data/comment/CommentAction.class.php @@ -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); -- 2.20.1