Skip to content

Commit

Permalink
Fix scheduled alerts.
Browse files Browse the repository at this point in the history
  • Loading branch information
EreMaijala committed Dec 11, 2024
1 parent 8700331 commit 192e13b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ function ($s) {
protected function getUserForSearch($s)
{
$user = parent::getUserForSearch($s);
if (trim($user->getEmail()) === '') {
if ($user && trim($user->getEmail()) === '') {
$this->warn(
'User ' . $user->getUsername() . ' does not have a valid email address, bypassing alert ' . $s->getId()
);
Expand Down

0 comments on commit 192e13b

Please sign in to comment.