Fix: Button to force LDAP synchro was not visible.

This commit is contained in:
Laurent Destailleur 2010-01-17 14:04:51 +00:00
parent 98723da492
commit 428ff97e88

View File

@ -167,14 +167,14 @@ if ($message) { print $message; }
print '<div class="tabsAction">';
if ($conf->global->LDAP_MEMBER_ACTIVE == 'dolibarr2ldap')
if (! empty($conf->global->LDAP_MEMBER_ACTIVE) && $conf->global->LDAP_MEMBER_ACTIVE != 'ldap2dolibarr')
{
print '<a class="butAction" href="'.$_SERVER["PHP_SELF"].'?id='.$adh->id.'&amp;action=dolibarr2ldap">'.$langs->trans("ForceSynchronize").'</a>';
}
print "</div>\n";
if ($conf->global->LDAP_MEMBER_ACTIVE == 'dolibarr2ldap') print "<br>\n";
if (! empty($conf->global->LDAP_MEMBER_ACTIVE) && $conf->global->LDAP_MEMBER_ACTIVE != 'ldap2dolibarr') print "<br>\n";