[ticket/17010] Adjust query to not trigger full group by issue

PHPBB3-17010
This commit is contained in:
Marc Alexander 2022-09-20 17:20:12 +02:00
parent 5fba4682c3
commit c4a8e32689
No known key found for this signature in database
GPG key ID: 50E0D2423696F995

View file

@ -158,9 +158,9 @@ class webpush extends \phpbb\notification\method\messenger_base
// Get subscriptions for users
$user_subscription_map = [];
$sql = 'SELECT * FROM ' . $this->push_subscriptions_table . '
WHERE ' . $this->db->sql_in_set('user_id', $notify_users) . '
GROUP BY user_id';
$sql = 'SELECT user_id, endpoint, p256dh, auth, encoding
FROM ' . $this->push_subscriptions_table . '
WHERE ' . $this->db->sql_in_set('user_id', $notify_users);
$result = $this->db->sql_query($sql);
while ($row = $this->db->sql_fetchrow($result))
{