- Fix regexp matching field names

release-0.6
alecpl 13 years ago
parent 5148d388ea
commit 62e2254e3f

@ -306,7 +306,7 @@ class rcube_contacts extends rcube_addressbook
if (!empty($post_search)) {
$ids = array(0);
// build key name regexp
$regexp = '/^(' . implode(array_keys($post_search), '|') . ')(:.*?)$/';
$regexp = '/^(' . implode(array_keys($post_search), '|') . ')(?:.*)$/';
// use initial WHERE clause, to limit records number if possible
if (!empty($where))
$this->set_search_set($where);

Loading…
Cancel
Save