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 "$name
";
}
- if(isset($_SESSION['role']) && $_SESSION['role'] >= 4) {
+ if($role >= 4) {
echo "Admin
";
}
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