From 59a2809ed0130ff0ca81c46c083d08c6ab5b23c5 Mon Sep 17 00:00:00 2001 From: bbdoc Date: Mon, 8 Jan 2024 22:12:22 +0100 Subject: [PATCH] Correct unset variable --- header.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/header.php b/header.php index 5ac44c0..f1ad498 100644 --- a/header.php +++ b/header.php @@ -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"; }