mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-28 09:39:00 +01:00
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
|
// 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