From 1267ad2db2ae4eb43cd81797bd250ef6af6ae2a6 Mon Sep 17 00:00:00 2001 From: Jan BELLON Date: Thu, 7 Mar 2024 21:03:34 +0000 Subject: [PATCH] Update 2 files - /include/variables.php - /include/functions.php --- include/functions.php | 4 +++- include/variables.php | 3 --- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/include/functions.php b/include/functions.php index 45ea8bd4..56177ecd 100644 --- a/include/functions.php +++ b/include/functions.php @@ -1,11 +1,13 @@ $url) { echo ""; } - if(isset($_SESSION['role']) && $_SESSION['role'] >= 4) { + if($role >= 4) { echo ""; } if (isset($_SESSION['userid'])) { diff --git a/include/variables.php b/include/variables.php index 5b8e43a4..fc9c98da 100644 --- a/include/variables.php +++ b/include/variables.php @@ -14,7 +14,4 @@ $nav = $config['nav']; $navadmin = $nav; $status = ""; $classifications = $config['classifications']; - -$role = isset($_SESSION['role']) ? (int)$_SESSION['role'] : 0; - ?> \ No newline at end of file