summaryrefslogtreecommitdiff
path: root/program/steps/addressbook/list.inc
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2011-06-03 12:34:48 +0000
committeralecpl <alec@alec.pl>2011-06-03 12:34:48 +0000
commitb896b18f87064f523dca82c3fcaa5465ec8328ad (patch)
tree4608edfbf9029a2bf26fa604fef4688f0104f1a2 /program/steps/addressbook/list.inc
parenta5be870d6c7ca8913e0e3accaf6d4cf188a3c3cd (diff)
- Call addressbook_get hook only if build-in addressbook doesn't match wanted ID (for better performance), other improvements
Diffstat (limited to 'program/steps/addressbook/list.inc')
-rw-r--r--program/steps/addressbook/list.inc4
1 files changed, 4 insertions, 0 deletions
diff --git a/program/steps/addressbook/list.inc b/program/steps/addressbook/list.inc
index 0eb4b806a..864ad939b 100644
--- a/program/steps/addressbook/list.inc
+++ b/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'));