Skip to content

Commit

Permalink
Globalize in newsletter helper function
Browse files Browse the repository at this point in the history
  • Loading branch information
ecartz committed Jun 1, 2022
1 parent 698cb9d commit 7297f03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion admin/includes/actions/newsletters/default.php
Expand Up @@ -21,7 +21,7 @@
function phoenix_newsletter_is_locked() {
$GLOBALS['newsletter_id'] = Text::input($_GET['nID']);

return $db->query("SELECT locked FROM newsletters WHERE newsletters_id = " . (int)($GLOBALS['newsletter_id']))->fetch_assoc()['locked'] ?? false;
return $GLOBALS['db']->query("SELECT locked FROM newsletters WHERE newsletters_id = " . (int)($GLOBALS['newsletter_id']))->fetch_assoc()['locked'] ?? false;
}

if (!isset($_GET['nID']) || !phoenix_newsletter_is_locked()) {
Expand Down

0 comments on commit 7297f03

Please sign in to comment.