alecpl
2011-06-03 62e2254e3f2171932cf6a60c0a616dc17af599af
- Fix regexp matching field names


1 files modified
2 ■■■ changed files
program/include/rcube_contacts.php 2 ●●● patch | view | raw | blame | history
program/include/rcube_contacts.php
@@ -306,7 +306,7 @@
        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);