From a004bb8cbe4a8f0adf68b5b63de1ef1d32007255 Mon Sep 17 00:00:00 2001 From: alecpl Date: Thu, 29 Apr 2010 11:15:02 +0000 Subject: - code re-formatting + small improvements --- program/include/rcube_contacts.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'program/include/rcube_contacts.php') diff --git a/program/include/rcube_contacts.php b/program/include/rcube_contacts.php index 81fef6d26..c756ada54 100644 --- a/program/include/rcube_contacts.php +++ b/program/include/rcube_contacts.php @@ -226,7 +226,7 @@ class rcube_contacts extends rcube_addressbook foreach ($fields as $col) { if ($col == 'ID' || $col == $this->primary_key) { $ids = !is_array($value) ? explode(',', $value) : $value; - $ids = join(',', array_map(array($this->db, 'quote'), $ids)); + $ids = $this->db->array2list($ids, 'integer'); $add_where[] = 'c.' . $this->primary_key.' IN ('.$ids.')'; } else if ($strict) @@ -437,7 +437,7 @@ class rcube_contacts extends rcube_addressbook if (!is_array($ids)) $ids = explode(',', $ids); - $ids = join(',', array_map(array($this->db, 'quote'), $ids)); + $ids = $this->db->array2list($ids, 'integer'); // flag record as deleted $this->db->query( @@ -589,8 +589,8 @@ class rcube_contacts extends rcube_addressbook if (!is_array($ids)) $ids = explode(',', $ids); - $ids = join(',', array_map(array($this->db, 'quote'), $ids)); - + $ids = $this->db->array2list($ids, 'integer'); + $sql_result = $this->db->query( "DELETE FROM ".get_table_name('contactgroupmembers'). " WHERE contactgroup_id=?". -- cgit v1.2.3