alecpl
2010-04-01 7fdb9da98e080ad623e3099c05eab17041013cab
program/include/rcube_contacts.php
@@ -399,6 +399,13 @@
    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
@@ -492,6 +499,7 @@
   *
   * @param string  Group identifier
   * @param array   List of contact identifiers to be added
   * @return int    Number of contacts added
   */
  function add_to_group($group_id, $ids)
  {
@@ -527,6 +535,7 @@
   *
   * @param string  Group identifier
   * @param array   List of contact identifiers to be removed
   * @return int    Number of deleted group members
   */
  function remove_from_group($group_id, $ids)
  {