From 307aaee0820e34cc81cc83aa6262ad7af8ed33dd Mon Sep 17 00:00:00 2001 From: AGuyNamedJens Date: Thu, 30 Mar 2023 22:17:08 +0200 Subject: [PATCH] (refactor) checkHTTPS Looks better this way, also fixes the log --- public/install/functions.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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; } /**