From bbb50109c0defff3215deaea68cef30a7cc61a77 Mon Sep 17 00:00:00 2001 From: skeeter Date: Fri, 7 Sep 2001 19:18:03 +0000 Subject: [PATCH] More fixes for php3 support. --- calendar/inc/class.bocalendar.inc.php | 4 ++-- phpgwapi/inc/class.acl.inc.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/calendar/inc/class.bocalendar.inc.php b/calendar/inc/class.bocalendar.inc.php index 06f05ed42c..d95d185233 100755 --- a/calendar/inc/class.bocalendar.inc.php +++ b/calendar/inc/class.bocalendar.inc.php @@ -779,11 +779,11 @@ { if($user == 0) { - return ($this->grants[$this->owner] & $needed); + return !!($this->grants[$this->owner] & $needed); } else { - return ($this->grants[intval($user)] & $needed); + return !!($this->grants[intval($user)] & $needed); } } diff --git a/phpgwapi/inc/class.acl.inc.php b/phpgwapi/inc/class.acl.inc.php index 72d6d5ad2e..6d4b11f9c3 100644 --- a/phpgwapi/inc/class.acl.inc.php +++ b/phpgwapi/inc/class.acl.inc.php @@ -612,7 +612,7 @@ $accounts = Array(); if ($db2->num_rows() == 0) { - $grants[$GLOBALS['phpgw_info']['user']['account_id']] = (~ 0); + $grants[$GLOBALS['phpgw_info']['user']['account_id']] = 31; return $grants; } while ($db2->next_record()) @@ -651,7 +651,7 @@ } reset($accounts[$grantor]); } - $grants[$GLOBALS['phpgw_info']['user']['account_id']] = (~ 0); + $grants[$GLOBALS['phpgw_info']['user']['account_id']] = 31; return $grants; } } //end of acl class