Skip to content

Commit 2797d1d

Browse files
committed
Handle no users to notify after removing banned users
1 parent d378b51 commit 2797d1d

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

notification/method/webpush.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,11 @@ protected function notify_using_webpush(): void
202202

203203
// Load all the users we need
204204
$notify_users = array_diff($user_ids, $banned_users);
205+
if (empty($notify_users))
206+
{
207+
return;
208+
}
209+
205210
$this->user_loader->load_users($notify_users, [USER_IGNORE]);
206211

207212
// Get subscriptions for users

0 commit comments

Comments
 (0)