diff --git a/addressbook/inc/class.addressbook_so.inc.php b/addressbook/inc/class.addressbook_so.inc.php index 73f1f3e3a3..a5f1b0a0ce 100755 --- a/addressbook/inc/class.addressbook_so.inc.php +++ b/addressbook/inc/class.addressbook_so.inc.php @@ -793,9 +793,9 @@ class addressbook_so { $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)); } }