Changeset 3489 in subversion for trunk/roundcubemail/program/include/rcube_contacts.php
- Timestamp:
- Apr 15, 2010 2:33:30 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/roundcubemail/program/include/rcube_contacts.php
r3485 r3489 404 404 $ids = join(',', $ids); 405 405 406 // delete all group members linked with these contacts 407 if ($this->groups) { 408 $this->db->query( 409 "DELETE FROM ".get_table_name('contactgroupmembers')." 410 WHERE contact_id IN (".$ids.")"); 411 } 412 406 // flag record as deleted 413 407 $this->db->query( 414 408 "UPDATE ".$this->db_name." 415 SET del=1 409 SET del=1, changed=".$this->db->now()." 416 410 WHERE user_id=? 417 411 AND contact_id IN (".$ids.")", … … 457 451 458 452 /** 459 * Delete the given group and all linked group members453 * Delete the given group (and all linked group members) 460 454 * 461 455 * @param string Group identifier … … 464 458 function delete_group($gid) 465 459 { 466 $sql_result = $this->db->query( 467 "DELETE FROM ".get_table_name('contactgroupmembers')." 468 WHERE contactgroup_id=?", 469 $gid); 470 460 // flag group record as deleted 471 461 $sql_result = $this->db->query( 472 462 "UPDATE ".get_table_name('contactgroups')."
Note: See TracChangeset
for help on using the changeset viewer.
