Better test

This commit is contained in:
Laurent Destailleur 2011-03-05 11:36:53 +00:00
parent 8d8629eab9
commit 385d75f0e2

View File

@ -211,7 +211,7 @@ if (empty($dolibarr_main_url_root))
</tr>
<?php
if (isset($_SERVER["HTTPS"])) { // Enabled if the installation process is "https://"
if (! empty($_SERVER["HTTPS"]) && $_SERVER["HTTPS"] == 'on') { // Enabled if the installation process is "https://"
?>
<tr>
<td valign="top" class="label"><?php echo $langs->trans("ForceHttps"); ?></td>