Skip to content

Commit 27c2453

Browse files
Merge b1c75d2 into 17b468a
2 parents 17b468a + b1c75d2 commit 27c2453

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

lib/DigestSender.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,11 @@ public function sendDigests(int $now): void {
7070
continue;
7171
}
7272
$userObject = $this->userManager->get($user);
73+
if (is_null($userObject)) {
74+
// User is not existing
75+
$this->logger->info('Exception occurred while retreiving the user object for sending user digest email');
76+
continue;
77+
}
7378
if (!$userObject->isEnabled()) {
7479
// User is disabled so do not send the email but update last sent since after enabling avoid flooding
7580
$this->updateLastSentForUser($userObject, $now);

0 commit comments

Comments
 (0)