Skip to content

Commit a50d857

Browse files
authored
Merge pull request #2422 from nextcloud/backport/2420/stable33
[stable33] fix: array offset error if value is not set
2 parents 17e4945 + 0a5a0f7 commit a50d857

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/Consumer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ public function bulkReceive(IEvent $event, array $affectedUserIds, ISetting $set
9595
continue;
9696
}
9797
$event->setAffectedUser($affectedUser);
98-
$notificationSetting = $userPushSettings[$affectedUser];
98+
$notificationSetting = $userPushSettings[$affectedUser] ?? null;
9999
if ($notificationSetting !== null) {
100100
$notificationSetting = (bool)$notificationSetting;
101101
}

0 commit comments

Comments
 (0)