|
|
@ -306,7 +306,7 @@ class rcube_contacts extends rcube_addressbook
|
|
|
|
if (!empty($post_search)) {
|
|
|
|
if (!empty($post_search)) {
|
|
|
|
$ids = array(0);
|
|
|
|
$ids = array(0);
|
|
|
|
// build key name regexp
|
|
|
|
// 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
|
|
|
|
// use initial WHERE clause, to limit records number if possible
|
|
|
|
if (!empty($where))
|
|
|
|
if (!empty($where))
|
|
|
|
$this->set_search_set($where);
|
|
|
|
$this->set_search_set($where);
|
|
|
|