Skip to content

Commit bbdbd22

Browse files
committed
Only 1 result needed for eff inst check
Signed-off-by: Matt Friedman <maf675@gmail.com>
1 parent 772d46c commit bbdbd22

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

migrations/update_user_notifications.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public function effectively_installed()
3030
$sql = 'SELECT method
3131
FROM ' . $this->table_prefix . "user_notifications
3232
WHERE method = '" . $this->db->sql_escape('notification.method.phpbb.wpn.webpush') . "'";
33-
$result = $this->db->sql_query($sql);
33+
$result = $this->db->sql_query_limit($sql, 1);
3434
$row = $this->db->sql_fetchrow($result);
3535
$this->db->sql_freeresult($result);
3636

0 commit comments

Comments
 (0)