mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-04 05:44:32 +01:00
fix sql error when deleting a user without distribution lists
This commit is contained in:
parent
c67b27c4ba
commit
55346c45a3
@ -793,9 +793,9 @@ class addressbook_so
|
|||||||
{
|
{
|
||||||
$this->somain->delete(array('owner' => $account_id)); // so_sql_cf::delete() takes care of cfs too
|
$this->somain->delete(array('owner' => $account_id)); // so_sql_cf::delete() takes care of cfs too
|
||||||
|
|
||||||
if(method_exists($this->somain, 'get_lists'))
|
if (method_exists($this->somain, 'get_lists') &&
|
||||||
|
($lists = $this->somain->get_lists($account_id)))
|
||||||
{
|
{
|
||||||
$lists = $this->somain->get_lists($account_id);
|
|
||||||
$this->somain->delete_list(array_keys($lists));
|
$this->somain->delete_list(array_keys($lists));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user