More fixes for php3 support.

This commit is contained in:
skeeter 2001-09-07 19:03:51 +00:00
parent 907dfb7e47
commit a3d40c6895

View File

@ -135,9 +135,9 @@
{ {
$this->owner = intval($GLOBALS['owner']); $this->owner = intval($GLOBALS['owner']);
} }
elseif(!isset($this->owner) || !$this->owner) elseif(!@isset($this->owner) || !@$this->owner)
{ {
$this->owner = $GLOBALS['phpgw_info']['user']['account_id']; $this->owner = intval($GLOBALS['phpgw_info']['user']['account_id']);
} }
$this->prefs['common'] = $GLOBALS['phpgw_info']['user']['preferences']['common']; $this->prefs['common'] = $GLOBALS['phpgw_info']['user']['preferences']['common'];
@ -783,7 +783,7 @@
} }
else else
{ {
return ($this->grants[$user] & $needed); return ($this->grants[intval($user)] & $needed);
} }
} }