Oops its user_load not users_load

This commit is contained in:
james 2010-10-14 23:06:21 +00:00
parent f225787e39
commit 759ecc0a1a

View File

@ -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) {