Skip to content

Commit

Permalink
Merge pull request #953 from nextcloud/backport/952/stable27
Browse files Browse the repository at this point in the history
[stable27] return if user is empty
  • Loading branch information
szaimen authored Sep 21, 2023
2 parents a8265b7 + 3f02bd2 commit 6d54354
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/Notification/Notifier.php
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,9 @@ public function prepare(INotification $notification, string $languageCode): INot
protected function getSubject(INotification $notification, string $languageCode): string {
$l = $this->factory->get('firstrunwizard', $languageCode);
$user = $this->userManager->get($notification->getUser());
if ($user === null) {
return '';
}

$email = $user->getEMailAddress();
if ($email === null || $email === '') {
Expand Down

0 comments on commit 6d54354

Please sign in to comment.