diff options
author | alecpl <alec@alec.pl> | 2010-04-23 08:09:25 +0000 |
---|---|---|
committer | alecpl <alec@alec.pl> | 2010-04-23 08:09:25 +0000 |
commit | 631967024347b32fc1791a0d91d0d4d93f9c381a (patch) | |
tree | 1a6b2716c51b48e3e3837e9f4b164696993c45a6 | |
parent | 3cf0993fa1db6d3bccc2e0945c931e90e4ca02c3 (diff) |
- Fix SQL error on contact auto-completion (#1486649)
-rw-r--r-- | program/include/rcube_contacts.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/program/include/rcube_contacts.php b/program/include/rcube_contacts.php index 7014415ed..21e31b996 100644 --- a/program/include/rcube_contacts.php +++ b/program/include/rcube_contacts.php @@ -122,7 +122,7 @@ class rcube_contacts extends rcube_addressbook if (!$this->groups) return $results; - $sql_filter = $search ? "AND " . $this->db->ilike('name', '%'.$search.'%') : ''; + $sql_filter = $search ? " AND " . $this->db->ilike('name', '%'.$search.'%') : ''; $sql_result = $this->db->query( "SELECT * FROM ".get_table_name('contactgroups'). |