From 428ff97e88a643aba46cfcbb10db85c614a11bf3 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sun, 17 Jan 2010 14:04:51 +0000 Subject: [PATCH] Fix: Button to force LDAP synchro was not visible. --- htdocs/adherents/ldap.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/adherents/ldap.php b/htdocs/adherents/ldap.php index 307e1f03d86..e3e178d3a2f 100644 --- a/htdocs/adherents/ldap.php +++ b/htdocs/adherents/ldap.php @@ -167,14 +167,14 @@ if ($message) { print $message; } print '
'; -if ($conf->global->LDAP_MEMBER_ACTIVE == 'dolibarr2ldap') +if (! empty($conf->global->LDAP_MEMBER_ACTIVE) && $conf->global->LDAP_MEMBER_ACTIVE != 'ldap2dolibarr') { print ''.$langs->trans("ForceSynchronize").''; } print "
\n"; -if ($conf->global->LDAP_MEMBER_ACTIVE == 'dolibarr2ldap') print "
\n"; +if (! empty($conf->global->LDAP_MEMBER_ACTIVE) && $conf->global->LDAP_MEMBER_ACTIVE != 'ldap2dolibarr') print "
\n";