summaryrefslogtreecommitdiff
path: root/roundcubemail/program/steps/addressbook/list.inc
diff options
context:
space:
mode:
authoralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2011-06-03 12:34:48 +0000
committeralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2011-06-03 12:34:48 +0000
commit34d8538d88e8605238bc4c2335f8d50132ccc8d4 (patch)
tree138f18ab13e0c24f0a7dc6b1b6c26f5b1820489f /roundcubemail/program/steps/addressbook/list.inc
parent13f0b7177d63cebdbf54ece3f8e942e9b893b963 (diff)
- Call addressbook_get hook only if build-in addressbook doesn't match wanted ID (for better performance), other improvements
git-svn-id: https://svn.roundcube.net/trunk@4836 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/steps/addressbook/list.inc')
-rw-r--r--roundcubemail/program/steps/addressbook/list.inc4
1 files changed, 4 insertions, 0 deletions
diff --git a/roundcubemail/program/steps/addressbook/list.inc b/roundcubemail/program/steps/addressbook/list.inc
index 0eb4b806a..864ad939b 100644
--- a/roundcubemail/program/steps/addressbook/list.inc
+++ b/roundcubemail/program/steps/addressbook/list.inc
@@ -19,6 +19,10 @@
*/
+// set message set for search result
+if (!empty($_REQUEST['_search']) && isset($_SESSION['search'][$_REQUEST['_search']]))
+ $CONTACTS->set_search_set($_SESSION['search'][$_REQUEST['_search']]);
+
// get contacts for this user
$result = $CONTACTS->list_records(array('name'));