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 b51f60ada5
commit 3655619b43

View File

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