diff --git a/htdocs/install/check.php b/htdocs/install/check.php
index ad687d3c52d..b37837df663 100644
--- a/htdocs/install/check.php
+++ b/htdocs/install/check.php
@@ -478,8 +478,17 @@ else
$choice .= '
';
if ($allowupgrade)
{
- // If it's not last updagre script, action = upgrade_tmp, if last action = upgrade
- $choice .= ''.$langs->trans("Start").'';
+ $disabled=false;
+ if ($foundrecommandedchoice == 2)
+ {
+ $disabled=true;
+ }
+ if ($foundrecommandedchoice == 1)
+ {
+ $foundrecommandedchoice = 2;
+ }
+ if ($disabled) $choice .= ''.$langs->trans("NotAvailable").'';
+ else $choice .= ''.$langs->trans("Start").'';
}
else
{
|