Fix: If not choice at all we show all of them.
This commit is contained in:
parent
1f8c35b70b
commit
1e2c452b95
@ -443,7 +443,8 @@ else
|
||||
$choice .= '<td class="listofchoices">';
|
||||
$choice .= $langs->trans("UpgradeDesc");
|
||||
|
||||
if ($recommended_choice) {
|
||||
if ($recommended_choice)
|
||||
{
|
||||
$choice .= '<br>';
|
||||
//print $langs->trans("InstallChoiceRecommanded",DOL_VERSION,$conf->global->MAIN_VERSION_LAST_UPGRADE);
|
||||
$choice .= '<center><div class="ok">'.$langs->trans("InstallChoiceSuggested").'</div>';
|
||||
@ -475,6 +476,13 @@ else
|
||||
}
|
||||
}
|
||||
|
||||
// If there is no choice at all, we show all of them.
|
||||
if (empty($available_choices))
|
||||
{
|
||||
$available_choices=$notavailable_choices;
|
||||
$notavailable_choices=array();
|
||||
}
|
||||
|
||||
// Array of install choices
|
||||
print '<table width="100%" class="listofchoices">';
|
||||
foreach ($available_choices as $choice) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user