forked from extern/egroupware
fix PHP 8.0 Fatal error
This commit is contained in:
parent
efd480c468
commit
dac55616af
@ -136,7 +136,7 @@ class Preferences
|
||||
$this->account_id = self::FORCED_ID;
|
||||
}
|
||||
// if we got instancated for a group, need to set offset of DEFAULT_ID!
|
||||
elseif ($account_id < 0 || !is_numeric($account_id) && ($account_id = get_account_id($account_id)) < 0)
|
||||
elseif ((int)$account_id < 0 || !is_numeric($account_id) && ($account_id = get_account_id($account_id)) < 0)
|
||||
{
|
||||
$this->account_id = $account_id + self::DEFAULT_ID;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user