release-0.6
alecpl 16 years ago
parent 48e2cfd981
commit f2b323e82e

@ -393,13 +393,8 @@ class rcube_contacts
*/ */
function delete_all() function delete_all()
{ {
if (is_array($ids)) $this->db->query("DELETE FROM {$this->db_name} WHERE user_id=?", $this->user_id);
$ids = join(',', $ids);
$this->db->query("DELETE FROM {$this->db_name} WHERE user_id=?", $this->user_id);
return $this->db->affected_rows(); return $this->db->affected_rows();
} }
} }

Loading…
Cancel
Save