[ticket/17010] Correctly fill subscription map for multiple subscriptions

PHPBB3-17010
This commit is contained in:
Marc Alexander 2023-06-25 16:51:29 +02:00
parent 6cc8df5d95
commit c35e9c2438
No known key found for this signature in database
GPG key ID: 50E0D2423696F995

View file

@ -176,14 +176,7 @@ class webpush extends messenger_base
$result = $this->db->sql_query($sql);
while ($row = $this->db->sql_fetchrow($result))
{
if (isset($user_subscription_map[$row['user_id']]))
{
$user_subscription_map[$row['user_id']] += $row;
}
else
{
$user_subscription_map[$row['user_id']] = [$row];
}
$user_subscription_map[$row['user_id']][] = $row;
}
$auth = [