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
a34c13fd94
commit
7020030c17
@ -1172,7 +1172,7 @@ class Account implements \ArrayAccess
|
|||||||
}
|
}
|
||||||
|
|
||||||
// store account data
|
// 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
|
// set not set values which, are NOT NULL and therefore would give an SQL error
|
||||||
$td = self::$db->get_table_definitions('api', self::TABLE);
|
$td = self::$db->get_table_definitions('api', self::TABLE);
|
||||||
|
Loading…
Reference in New Issue
Block a user