From 10731b22c839edc3534fe31fb0742a8b168fb2d0 Mon Sep 17 00:00:00 2001 From: Philippe GRAND Date: Wed, 24 Aug 2022 10:11:47 +0200 Subject: [PATCH] FIX php8 compatibility --- htdocs/admin/ldap.php | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/htdocs/admin/ldap.php b/htdocs/admin/ldap.php index ef488943a4b..196702b938b 100644 --- a/htdocs/admin/ldap.php +++ b/htdocs/admin/ldap.php @@ -158,24 +158,24 @@ if (!empty($conf->global->LDAP_SYNCHRO_ACTIVE) && empty($conf->global->LDAP_USER print ''; // Synchro contact active -if (!empty($conf->societe->enabled)) { - print ''.$langs->trans("LDAPDnContactActive").''; +if (isModEnabled('societe')) { + print '' . $langs->trans("LDAPDnContactActive") . ''; print $formldap->selectLdapDnSynchroActive(getDolGlobalInt('LDAP_CONTACT_ACTIVE'), 'activecontact', array(Ldap::SYNCHRO_LDAP_TO_DOLIBARR)); - print ''.$langs->trans("LDAPDnContactActiveExample").''; + print '' . $langs->trans("LDAPDnContactActiveExample") . ''; } // Synchro member active -if (!empty($conf->adherent->enabled)) { - print ''.$langs->trans("LDAPDnMemberActive").''; +if (isModEnabled('adherent')) { + print '' . $langs->trans("LDAPDnMemberActive") . ''; print $formldap->selectLdapDnSynchroActive(getDolGlobalInt('LDAP_MEMBER_ACTIVE'), 'activemembers', array(), 2); - print ''.$langs->trans("LDAPDnMemberActiveExample").''; + print '' . $langs->trans("LDAPDnMemberActiveExample") . ''; } // Synchro member type active -if (!empty($conf->adherent->enabled)) { - print ''.$langs->trans("LDAPDnMemberTypeActive").''; +if (isModEnabled('adherent')) { + print '' . $langs->trans("LDAPDnMemberTypeActive") . ''; print $formldap->selectLdapDnSynchroActive(getDolGlobalInt('LDAP_MEMBER_TYPE_ACTIVE'), 'activememberstypes', array(), 2); - print ''.$langs->trans("LDAPDnMemberTypeActiveExample").''; + print '' . $langs->trans("LDAPDnMemberTypeActiveExample") . ''; } // Fields from hook