diff --git a/include/functions.php b/include/functions.php index 56177ecd..d9eab46c 100644 --- a/include/functions.php +++ b/include/functions.php @@ -3,11 +3,11 @@ session_start(); $role = isset($_SESSION['role']) ? (int)$_SESSION['role'] : 0; -function nav($nav) { +function nav($nav, $role) { foreach($nav as $name => $url) { echo ""; } - if($role >= 4) { + if($_SESSION['role'] >= 4) { echo ""; } if (isset($_SESSION['userid'])) {