diff options
Diffstat (limited to 'program')
-rw-r--r-- | program/include/rcube_contacts.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/program/include/rcube_contacts.php b/program/include/rcube_contacts.php index 0946b05f2..2964cde49 100644 --- a/program/include/rcube_contacts.php +++ b/program/include/rcube_contacts.php @@ -399,6 +399,13 @@ class rcube_contacts extends rcube_addressbook if (is_array($ids)) $ids = join(',', $ids); + // delete all group members linked with these contacts + if ($this->groups) { + $this->db->query( + "DELETE FROM ".get_table_name('contactgroupmembers')." + WHERE contact_id IN (".$ids.")"); + } + $this->db->query( "UPDATE ".$this->db_name." SET del=1 |