diff options
| author | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2007-07-03 17:25:05 +0000 |
|---|---|---|
| committer | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2007-07-03 17:25:05 +0000 |
| commit | fe61a8e6265d8e4d800c61657c9eda214f5cff81 (patch) | |
| tree | 9c78237398a3f5dffee23c6d8093ae0c8135f831 /roundcubemail/program/include/rcube_ldap.inc | |
| parent | 2ee124c0ad4ee0a9f81482ab71d46fb0a703410e (diff) | |
Fix address adding bug reported by David Koblas
git-svn-id: https://svn.roundcube.net/trunk@638 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/include/rcube_ldap.inc')
| -rw-r--r-- | roundcubemail/program/include/rcube_ldap.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/roundcubemail/program/include/rcube_ldap.inc b/roundcubemail/program/include/rcube_ldap.inc index 055c346e1..1aa88f1c8 100644 --- a/roundcubemail/program/include/rcube_ldap.inc +++ b/roundcubemail/program/include/rcube_ldap.inc @@ -231,7 +231,7 @@ class rcube_ldap * @param boolean True if results are requested, False if count only * @return Indexed list of contact records and 'count' value */ - function search($fields, $value, $select=true) + function search($fields, $value, $strict=false, $select=true) { // special treatment for ID-based search if ($fields == 'ID' || $fields == $this->primary_key) @@ -249,7 +249,7 @@ class rcube_ldap } $filter = '(|'; - $wc = $this->prop['fuzzy_search'] ? '*' : ''; + $wc = !$strict && $this->prop['fuzzy_search'] ? '*' : ''; if (is_array($this->prop['search_fields'])) { foreach ($this->prop['search_fields'] as $k => $field) |
