diff --git a/protected/humhub/modules/comment/notifications/NewComment.php b/protected/humhub/modules/comment/notifications/NewComment.php index 029e075dbb..5adf30cc67 100644 --- a/protected/humhub/modules/comment/notifications/NewComment.php +++ b/protected/humhub/modules/comment/notifications/NewComment.php @@ -156,7 +156,7 @@ class NewComment extends \humhub\modules\notification\components\BaseNotificatio { $contentInfo = $this->getContentInfo($this->getCommentedRecord()); - if(!$contentInfo){ + if (!$contentInfo) { $contentInfo = Yii::t('CommentModule.notification', "[Deleted]"); } @@ -180,7 +180,7 @@ class NewComment extends \humhub\modules\notification\components\BaseNotificatio public function getCommentedRecord() { $source = $this->source; - if(is_null($source)){ + if ( is_null($source)) { //This prevents the error, but we need to clean the database return null; } else {