* Addressbook: lettersearch was not working for addressbooks in LDAP if PostgreSQL database was used (bug #2851)

wrong parsing of sql query to construct LDAP query
This commit is contained in:
Ralf Becker 2011-04-10 15:32:30 +00:00
parent 795db441ad
commit 1205036193

View File

@ -767,7 +767,7 @@ class addressbook_ldap
}
}
// 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))
{
foreach($this->schema2egw as $mapping)
{