From 2d3e2bc56108fc014edfaa154237b551daea4cc0 Mon Sep 17 00:00:00 2001 From: thomascube Date: Wed, 21 Sep 2011 11:17:46 +0000 Subject: Add option 'searchonly' for address books; currently used by LDAP directories --- program/steps/addressbook/list.inc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'program/steps') diff --git a/program/steps/addressbook/list.inc b/program/steps/addressbook/list.inc index dbc86e20f..313b52ea1 100644 --- a/program/steps/addressbook/list.inc +++ b/program/steps/addressbook/list.inc @@ -73,6 +73,9 @@ else { // get contacts for this user $result = $CONTACTS->list_records(array('name')); + + if (!$result->count && $result->searchonly) + $OUTPUT->show_message('contactsearchonly', 'notice'); } // update message count display -- cgit v1.2.3