mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-07 20:08:53 +00:00
[ticket/17010] Adjust query to not trigger full group by issue
PHPBB3-17010
This commit is contained in:
parent
5fba4682c3
commit
c4a8e32689
1 changed files with 3 additions and 3 deletions
|
@ -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))
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue