More fixes for php3 support.

This commit is contained in:
skeeter 2001-09-07 19:18:03 +00:00
parent a3d40c6895
commit bbb50109c0
2 changed files with 4 additions and 4 deletions

View File

@ -779,11 +779,11 @@
{ {
if($user == 0) if($user == 0)
{ {
return ($this->grants[$this->owner] & $needed); return !!($this->grants[$this->owner] & $needed);
} }
else else
{ {
return ($this->grants[intval($user)] & $needed); return !!($this->grants[intval($user)] & $needed);
} }
} }

View File

@ -612,7 +612,7 @@
$accounts = Array(); $accounts = Array();
if ($db2->num_rows() == 0) if ($db2->num_rows() == 0)
{ {
$grants[$GLOBALS['phpgw_info']['user']['account_id']] = (~ 0); $grants[$GLOBALS['phpgw_info']['user']['account_id']] = 31;
return $grants; return $grants;
} }
while ($db2->next_record()) while ($db2->next_record())
@ -651,7 +651,7 @@
} }
reset($accounts[$grantor]); reset($accounts[$grantor]);
} }
$grants[$GLOBALS['phpgw_info']['user']['account_id']] = (~ 0); $grants[$GLOBALS['phpgw_info']['user']['account_id']] = 31;
return $grants; return $grants;
} }
} //end of acl class } //end of acl class