diff --git a/api/src/Mail/Account.php b/api/src/Mail/Account.php index 3fcc988a9a..6d962be7a2 100644 --- a/api/src/Mail/Account.php +++ b/api/src/Mail/Account.php @@ -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);