summaryrefslogtreecommitdiff
path: root/program/steps/addressbook/list.inc
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2011-09-21 11:17:46 +0000
committerthomascube <thomas@roundcube.net>2011-09-21 11:17:46 +0000
commit2d3e2bc56108fc014edfaa154237b551daea4cc0 (patch)
tree26430c969e5879944c3fc92609cd6d0ff3e41174 /program/steps/addressbook/list.inc
parentc054ec5c7a859aa15243f0b1cbd3e84239ed4023 (diff)
Add option 'searchonly' for address books; currently used by LDAP directories
Diffstat (limited to 'program/steps/addressbook/list.inc')
-rw-r--r--program/steps/addressbook/list.inc3
1 files changed, 3 insertions, 0 deletions
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