Skip to content

Commit

Permalink
Merge pull request #2453 from Leantime/FixMentionsBug
Browse files Browse the repository at this point in the history
change check
  • Loading branch information
marcelfolaron authored Apr 2, 2024
2 parents add8c06 + b4a806f commit 392f910
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Domain/Notifications/Services/Notifications.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
Expand Down

0 comments on commit 392f910

Please sign in to comment.