mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-11 05:48:51 +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
|
// 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))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue