summaryrefslogtreecommitdiff
path: root/program/include/rcube_contacts.php
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2011-06-03 13:31:55 +0000
committeralecpl <alec@alec.pl>2011-06-03 13:31:55 +0000
commit62e2254e3f2171932cf6a60c0a616dc17af599af (patch)
treeea97730c4e38f5ad1f2de7eb7920af84c7214227 /program/include/rcube_contacts.php
parent5148d388ea954ccb0320bd5b2e963c9018820938 (diff)
- Fix regexp matching field names
Diffstat (limited to 'program/include/rcube_contacts.php')
-rw-r--r--program/include/rcube_contacts.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/program/include/rcube_contacts.php b/program/include/rcube_contacts.php
index 38a1f3742..b9380e45f 100644
--- a/program/include/rcube_contacts.php
+++ b/program/include/rcube_contacts.php
@@ -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);