Changeset 3451 in subversion


Ignore:
Timestamp:
Mar 31, 2010 11:45:02 AM (3 years ago)
Author:
thomasb
Message:

Also remove contactgroupmembers when deleting a contact

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/roundcubemail/program/include/rcube_contacts.php

    r3449 r3451  
    400400      $ids = join(',', $ids); 
    401401 
     402    // delete all group members linked with these contacts 
     403    if ($this->groups) { 
     404      $this->db->query( 
     405        "DELETE FROM ".get_table_name('contactgroupmembers')." 
     406         WHERE  contact_id IN (".$ids.")"); 
     407    } 
     408 
    402409    $this->db->query( 
    403410      "UPDATE ".$this->db_name." 
Note: See TracChangeset for help on using the changeset viewer.