Better test

This commit is contained in:
Laurent Destailleur 2011-03-05 11:32:46 +00:00
parent 2aa7799455
commit 4ab7e87b38

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>