Skip to content

Commit a541fa7

Browse files
authored
Merge pull request #2421 from nextcloud/backport/2420/stable32
[stable32] fix: array offset error if value is not set
2 parents 846069a + 2bb1341 commit a541fa7

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)