Update website.php

This commit is contained in:
Laurent Destailleur 2021-03-21 20:50:00 +01:00 committed by GitHub
parent b7a46ae838
commit 6cdfbc2e8c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -178,7 +178,7 @@ if (!empty($conf->global->MEMBER_ENABLE_PUBLIC)) {
print '</td><td class="right">';
$listofval = array();
$listofval += $adht->liste_array();
$forcetype = !empty($conf->global->MEMBER_NEWFORM_FORCETYPE) ? $conf->global->MEMBER_NEWFORM_FORCETYPE : -1;
$forcetype = empty($conf->global->MEMBER_NEWFORM_FORCETYPE) ? -1 : $conf->global->MEMBER_NEWFORM_FORCETYPE;
print $form->selectarray("MEMBER_NEWFORM_FORCETYPE", $listofval, $forcetype, count($listofval) > 1 ? 1 : 0);
print "</td></tr>\n";