diff --git a/htdocs/install/fileconf.php b/htdocs/install/fileconf.php
index fede559879545f24843ba411db3daa17515f2492..3f39866c9411ce3b8e12a933e846fb7b53142355 100644
--- a/htdocs/install/fileconf.php
+++ b/htdocs/install/fileconf.php
@@ -201,7 +201,7 @@ print $langs->trans("Examples").":<br>";
 <tr>
 <td valign="top" class="label">
 <?php echo $langs->trans("ForceHttps"); ?>
-<td class="label" valign="top"><input type="checkbox" name="main_force_https"<?php if ($force_install_mainforcehttps) print ' checked="on"'; ?>></td>
+<td class="label" valign="top"><input type="checkbox" name="main_force_https"<?php if (! empty($force_install_mainforcehttps)) print ' checked="on"'; ?>></td>
 <td class="comment">
 <?php echo $langs->trans("CheckToForceHttps"); ?>
 </td>