forked from Wavyzz/dolibarr
fix php8 warnings
This commit is contained in:
@@ -64,14 +64,14 @@ function ldap_prepare_head()
|
||||
$h++;
|
||||
}
|
||||
|
||||
if (!empty($conf->adherent->enabled) && !empty($conf->global->LDAP_MEMBER_ACTIVE)) {
|
||||
if (isModEnabled('adherent') && !empty($conf->global->LDAP_MEMBER_ACTIVE)) {
|
||||
$head[$h][0] = DOL_URL_ROOT."/admin/ldap_members.php";
|
||||
$head[$h][1] = $langs->trans("LDAPMembersSynchro");
|
||||
$head[$h][2] = 'members';
|
||||
$h++;
|
||||
}
|
||||
|
||||
if (!empty($conf->adherent->enabled) && !empty($conf->global->LDAP_MEMBER_TYPE_ACTIVE)) {
|
||||
if (isModEnabled('adherent') && !empty($conf->global->LDAP_MEMBER_TYPE_ACTIVE)) {
|
||||
$head[$h][0] = DOL_URL_ROOT."/admin/ldap_members_types.php";
|
||||
$head[$h][1] = $langs->trans("LDAPMembersTypesSynchro");
|
||||
$head[$h][2] = 'memberstypes';
|
||||
|
||||
Reference in New Issue
Block a user