diff --git a/html/includes/authenticate.inc.php b/html/includes/authenticate.inc.php index f1d169e33..ac79c164c 100644 --- a/html/includes/authenticate.inc.php +++ b/html/includes/authenticate.inc.php @@ -45,7 +45,7 @@ if (isset($_SESSION['username'])) { if (authenticate($_SESSION['username'],$_SESSION['password'])) { - $_SESSION['userlevel'] = get_userlevel($_SESSION['username']) + $_SESSION['userlevel'] = get_userlevel($_SESSION['username']); $_SESSION['user_id'] = $row['user_id']; if(!$_SESSION['authenticated']) { diff --git a/html/includes/authentication/http-auth.inc.php b/html/includes/authentication/http-auth.inc.php index 553a50553..5edb8d876 100644 --- a/html/includes/authentication/http-auth.inc.php +++ b/html/includes/authentication/http-auth.inc.php @@ -54,7 +54,7 @@ function user_exists($username) function get_userlevel($username) { $sql = "SELECT level FROM `users` WHERE `username`='".mres($username)."'"; - $row = mysql_fetch_array(mysql_query($sql); + $row = mysql_fetch_array(mysql_query($sql)); return $row['level']; } diff --git a/html/includes/authentication/ldap.inc.php b/html/includes/authentication/ldap.inc.php index 8d4bd521a..e987c1c46 100644 --- a/html/includes/authentication/ldap.inc.php +++ b/html/includes/authentication/ldap.inc.php @@ -64,7 +64,7 @@ function get_userlevel($username) { # FIXME should come from LDAP $sql = "SELECT level FROM `users` WHERE `username`='".mres($username)."'"; - $row = mysql_fetch_array(mysql_query($sql); + $row = mysql_fetch_array(mysql_query($sql)); return $row['level']; } diff --git a/html/includes/authentication/mysql.inc.php b/html/includes/authentication/mysql.inc.php index 627baf10c..e7f6410f0 100644 --- a/html/includes/authentication/mysql.inc.php +++ b/html/includes/authentication/mysql.inc.php @@ -45,7 +45,7 @@ function user_exists($username) function get_userlevel($username) { $sql = "SELECT level FROM `users` WHERE `username`='".mres($username)."'"; - $row = mysql_fetch_array(mysql_query($sql); + $row = mysql_fetch_array(mysql_query($sql)); return $row['level']; }