mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 14:41:29 +01:00
More fixes for php3 support.
This commit is contained in:
parent
907dfb7e47
commit
a3d40c6895
@ -135,9 +135,9 @@
|
||||
{
|
||||
$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'];
|
||||
@ -783,7 +783,7 @@
|
||||
}
|
||||
else
|
||||
{
|
||||
return ($this->grants[$user] & $needed);
|
||||
return ($this->grants[intval($user)] & $needed);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user