From 2d3e2bc56108fc014edfaa154237b551daea4cc0 Mon Sep 17 00:00:00 2001
From: thomascube <thomas@roundcube.net>
Date: Wed, 21 Sep 2011 07:17:46 -0400
Subject: [PATCH] Add option 'searchonly' for address books; currently used by LDAP directories

---
 program/steps/addressbook/list.inc |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/program/steps/addressbook/list.inc b/program/steps/addressbook/list.inc
index dbc86e2..313b52e 100644
--- a/program/steps/addressbook/list.inc
+++ b/program/steps/addressbook/list.inc
@@ -73,6 +73,9 @@
 
     // 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

--
Gitblit v1.9.1