diff --git a/app/Domain/Notifications/Services/Notifications.php b/app/Domain/Notifications/Services/Notifications.php index 6b67bdcc51..bab76f66b5 100644 --- a/app/Domain/Notifications/Services/Notifications.php +++ b/app/Domain/Notifications/Services/Notifications.php @@ -151,7 +151,7 @@ public function processMentions(string $content, string $module, int $moduleId, $mailer->setHtml($emailMessage); $taggedUserObject = $this->userRepository->getUser($taggedUser); - if(!empty($taggedUserObject['username'])) { + if (isset($taggedUserObject['username'])) { $mailer->sendMail(array($taggedUserObject['username']), $authorName); } }