diff --git a/public/install/functions.php b/public/install/functions.php index 99ed6214..a5e6eecf 100644 --- a/public/install/functions.php +++ b/public/install/functions.php @@ -46,9 +46,9 @@ function checkWriteable(): bool */ function checkHTTPS(): bool { - wh_log('https: ' . (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off') ? 'true' : 'false', 'debug'); - return (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off') - || $_SERVER['SERVER_PORT'] == 443; + $isHttps = (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off') || $_SERVER['SERVER_PORT'] == 443; + wh_log('https: ' . $isHttps, 'debug'); + return $isHttps; } /**