diff options
| author | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2008-08-09 20:20:59 +0000 |
|---|---|---|
| committer | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2008-08-09 20:20:59 +0000 |
| commit | cdb1d39e62ad221298f2351d7a6ea4cb7271fceb (patch) | |
| tree | 68a34433e6c53a129cda5e4d9c56528dbcea7a02 /roundcubemail/program/include/rcube_contacts.php | |
| parent | d049247fbba28a96ffc7b8c9469c05b447007d12 (diff) | |
- Case insensitive contacts searching using PostgreSQL (#1485259)
git-svn-id: https://svn.roundcube.net/trunk@1637 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/include/rcube_contacts.php')
| -rw-r--r-- | roundcubemail/program/include/rcube_contacts.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/roundcubemail/program/include/rcube_contacts.php b/roundcubemail/program/include/rcube_contacts.php index 913f04fd3..0c0f932fc 100644 --- a/roundcubemail/program/include/rcube_contacts.php +++ b/roundcubemail/program/include/rcube_contacts.php @@ -196,12 +196,12 @@ class rcube_contacts if ($col == 'ID' || $col == $this->primary_key) { $ids = !is_array($value) ? split(',', $value) : $value; - $add_where[] = $this->primary_key." IN (".join(',', $ids).")"; + $add_where[] = $this->primary_key.' IN ('.join(',', $ids).')'; } else if ($strict) - $add_where[] = $this->db->quoteIdentifier($col)."=".$this->db->quote($value); + $add_where[] = $this->db->quoteIdentifier($col).'='.$this->db->quote($value); else - $add_where[] = $this->db->quoteIdentifier($col)." LIKE ".$this->db->quote(strlen($value)>2 ? "%$value%" : "$value%"); + $add_where[] = $this->db->ilike($col, '%'.$value.'%'); } if (!empty($add_where)) |
