summaryrefslogtreecommitdiff
path: root/roundcubemail/program/steps
diff options
context:
space:
mode:
authorjustinrandell <justinrandell@208e9e7b-5314-0410-a742-e7e81cd9613c>2006-01-08 07:40:09 +0000
committerjustinrandell <justinrandell@208e9e7b-5314-0410-a742-e7e81cd9613c>2006-01-08 07:40:09 +0000
commit6c48b0a7434e602e33519cc2c46957ba0495477e (patch)
tree1fcaadbb5e60a43bd063dcc89d9db40ec449298d /roundcubemail/program/steps
parent34851cb4d0b2aa89b2edb8ae6c2c5555ff9389ce (diff)
disable ldap search button if no servers configured
git-svn-id: https://svn.roundcube.net/trunk@97 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/steps')
-rw-r--r--roundcubemail/program/steps/addressbook/func.inc7
1 files changed, 6 insertions, 1 deletions
diff --git a/roundcubemail/program/steps/addressbook/func.inc b/roundcubemail/program/steps/addressbook/func.inc
index ee3b8804a..f7993c9bc 100644
--- a/roundcubemail/program/steps/addressbook/func.inc
+++ b/roundcubemail/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)