From: Marcel Werk Date: Wed, 18 Jan 2017 17:30:21 +0000 (+0100) Subject: Fixed wrong option type name X-Git-Tag: 3.0.1~13^2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=948d412ac09c0f576592947f0d0b45acf1af2a72;p=GitHub%2FWoltLab%2FWCF.git Fixed wrong option type name --- 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);