forked from extern/egroupware
fix PHP 8.0 problem "new" > 0 causing mail accounts created via admin for an other user to fail
This commit is contained in:
parent
b51f60ada5
commit
3655619b43
@ -1172,7 +1172,7 @@ class Account implements \ArrayAccess
|
||||
}
|
||||
|
||||
// store account data
|
||||
if (!($data['acc_id'] > 0))
|
||||
if (!(int)$data['acc_id'])
|
||||
{
|
||||
// set not set values which, are NOT NULL and therefore would give an SQL error
|
||||
$td = self::$db->get_table_definitions('api', self::TABLE);
|
||||
|
Loading…
Reference in New Issue
Block a user