thomascube
2008-02-20 103d6b697ce53eb8e954b4a4c9eac659ef942b24
program/include/rcube_contacts.inc
@@ -386,6 +386,19 @@
    return $this->db->affected_rows();
  }
  /**
   * Remove all records from the database
   */
  function delete_all()
  {
    if (is_array($ids))
      $ids = join(',', $ids);
    $this->db->query("DELETE FROM {$this->db_name} WHERE  user_id=?", $this->user_id);
    return $this->db->affected_rows();
  }
}