From 9368542475071d0044092aa684494b7c27349d33 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Sun, 18 Mar 2007 01:49:03 +0000 Subject: [PATCH] r1489: We really should heed warnings on PHP.net that tell us that there's problems with bitwise ops if we don't explicitly cast to ints... --- includes/functions.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/functions.php b/includes/functions.php index 6a0d061..07d59c2 100755 --- a/includes/functions.php +++ b/includes/functions.php @@ -729,7 +729,7 @@ function FetchUserPermissions(&$user) { global $bugsys; - $perms = $bugsys->datastore['usergroup']["$user[usergroupid]"]['permissions']; + $perms = (int)$bugsys->datastore['usergroup']["$user[usergroupid]"]['permissions']; if (!is_array($user['groupids'])) { $user['groupids'] = explode(',', $bugsys->userinfo['groupids']); @@ -737,7 +737,7 @@ function FetchUserPermissions(&$user) foreach ($user['groupids'] AS $group) { - $perms |= $bugsys->datastore['usergroup']["$group"]['permissions']; + $perms |= (int)$bugsys->datastore['usergroup']["$group"]['permissions']; } return $perms; -- 2.43.5