fix PHP 8.0 problem "new" > 0 causing mail accounts created via admin for an other user to fail

This commit is contained in:
Ralf Becker 2021-11-09 08:02:49 +01:00
parent a34c13fd94
commit 7020030c17

View File

@ -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);