diff --git a/inc/auth.php b/inc/auth.php index 9c458338dce7ca3264a94b83bdfaee382e8724ce..c68a699fe9a09f7cd0dc5fccfcfe18c89edafe2e 100644 --- a/inc/auth.php +++ b/inc/auth.php @@ -580,7 +580,7 @@ function auth_aclcheck($id, $user, $groups) { } if($perm > -1) { //we had a match - return it - return $perm; + return (int) $perm; } } @@ -610,7 +610,7 @@ function auth_aclcheck($id, $user, $groups) { } //we had a match - return it if($perm != -1) { - return $perm; + return (int) $perm; } } //get next higher namespace