Skip to content

Commit

Permalink
Only 1 result needed for eff inst check
Browse files Browse the repository at this point in the history
Signed-off-by: Matt Friedman <[email protected]>
  • Loading branch information
iMattPro committed May 31, 2024
1 parent 772d46c commit bbdbd22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion migrations/update_user_notifications.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public function effectively_installed()
$sql = 'SELECT method
FROM ' . $this->table_prefix . "user_notifications
WHERE method = '" . $this->db->sql_escape('notification.method.phpbb.wpn.webpush') . "'";
$result = $this->db->sql_query($sql);
$result = $this->db->sql_query_limit($sql, 1);
$row = $this->db->sql_fetchrow($result);
$this->db->sql_freeresult($result);

Expand Down

0 comments on commit bbdbd22

Please sign in to comment.