Skip to content

Commit

Permalink
return if user is empty
Browse files Browse the repository at this point in the history
Signed-off-by: Simon L <[email protected]>
  • Loading branch information
szaimen committed Sep 21, 2023
1 parent bfa18c7 commit 559151d
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 559151d

Please sign in to comment.