diff --git a/user.inc.php b/user.inc.php index 2c78843..7acc5a0 100644 --- a/user.inc.php +++ b/user.inc.php @@ -908,7 +908,7 @@ function try_login($user, $pass) } function updateSessionRoles($u=null) { if(!$u) - $u=users_load($_SESSION['user_id']); + $u=user_load($_SESSION['user_id']); $_SESSION['roles']=array(); foreach($u['roles'] AS $r=>$rd) {