forked from extern/egroupware
guard against mail account looses all accounts it is valid for
This commit is contained in:
parent
78aa55fd47
commit
b8c424a9d2
@ -1218,7 +1218,7 @@ class Account implements \ArrayAccess
|
|||||||
{
|
{
|
||||||
$old_account_ids[] = $row['account_id'];
|
$old_account_ids[] = $row['account_id'];
|
||||||
}
|
}
|
||||||
if (($ids_to_remove = array_diff($old_account_ids, (array)$data['account_id'])))
|
if ($data['account_id'] && ($ids_to_remove = array_diff($old_account_ids, (array)$data['account_id'])))
|
||||||
{
|
{
|
||||||
self::$db->delete(self::VALID_TABLE, $where+array(
|
self::$db->delete(self::VALID_TABLE, $where+array(
|
||||||
'account_id' => $ids_to_remove,
|
'account_id' => $ids_to_remove,
|
||||||
|
Loading…
Reference in New Issue
Block a user