Skip to content

Commit

Permalink
Correct unset variable
Browse files Browse the repository at this point in the history
  • Loading branch information
bbdoc committed Jan 8, 2024
1 parent 33c339b commit 59a2809
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion header.php
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,9 @@
$redirect_page = "unregistered.php";
}

if (isset($enable_admin_dis) && $enable_admin_dis == "False" && $_SESSION['id'] <> $_SESSION['admin_id'])
if (!isset($subs_clause)) { $subs_clause .= ""; }

if (isset($enable_admin_dis) && $enable_admin_dis == "False" && isset($_SESSION['admin_id']) && $_SESSION['id'] <> $_SESSION['admin_id'])
{
$subs_clause .= " AND admin_disable = 0";
}
Expand Down

0 comments on commit 59a2809

Please sign in to comment.