1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-01 14:30:32 +02:00

[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

View File

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