* Addressbook: lettersearch was not working for addressbooks in LDAP if PostgreSQL database was used

wrong parsing of sql query to construct LDAP query
This commit is contained in:
Ralf Becker 2011-04-10 15:31:06 +00:00
parent f9444ae1cd
commit 4c24ac26b2

View File

@ -767,7 +767,7 @@ class addressbook_ldap
} }
} }
// filter for letter-search // filter for letter-search
elseif (preg_match("/^([^ ]+) I?LIKE '(.*)%'$/",$value,$matches)) elseif (preg_match("/^([^ ]+) ".preg_quote($GLOBALS['egw']->db->capabilities[egw_db::CAPABILITY_CASE_INSENSITIV_LIKE])." '(.*)%'$/",$value,$matches))
{ {
list(,$name,$value) = $matches; list(,$name,$value) = $matches;
if (strpos($name,'.') !== false) list(,$name) = explode('.',$name); if (strpos($name,'.') !== false) list(,$name) = explode('.',$name);