summaryrefslogtreecommitdiff
path: root/program/steps/addressbook
diff options
context:
space:
mode:
authorsvncommit <devs@roundcube.net>2006-01-08 07:40:09 +0000
committersvncommit <devs@roundcube.net>2006-01-08 07:40:09 +0000
commitc0da982d9e11bb80ec9948e89ccdb55b90bc77e3 (patch)
treeeb562e829efb0245e4b178233462969022d03cec /program/steps/addressbook
parentd4ab31129f9bccab659cc4d3d45512ec7606fd62 (diff)
disable ldap search button if no servers configured
Diffstat (limited to 'program/steps/addressbook')
-rw-r--r--program/steps/addressbook/func.inc7
1 files changed, 6 insertions, 1 deletions
diff --git a/program/steps/addressbook/func.inc b/program/steps/addressbook/func.inc
index ee3b8804a..f7993c9bc 100644
--- a/program/steps/addressbook/func.inc
+++ b/program/steps/addressbook/func.inc
@@ -30,7 +30,12 @@ if (strlen($_GET['_page']))
else
$CONTACTS_LIST['page'] = $_SESSION['page'] ? $_SESSION['page'] : 1;
-
+// disable the ldap public search button if there's no servers configured
+$enable_ldap = 'true';
+if (!$CONFIG['ldap_public'])
+ $enable_ldap = 'false';
+
+$OUTPUT->add_script("$JS_OBJECT_NAME.set_env('ldappublicsearch', $enable_ldap);");
// return the message list as HTML table
function rcmail_contacts_list($attrib)