From: Tobias Kappé Date: Sun, 12 Aug 2018 13:54:02 +0000 (+0100) Subject: Fix undefined index warning in installation. X-Git-Tag: 18.8~6^2 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=52dbd55c7bd929b3b61173bc163ac1ce1b2df83e;p=tt-rss.git Fix undefined index warning in installation. --- diff --git a/install/index.php b/install/index.php index f1547982..350c2f2d 100755 --- a/install/index.php +++ b/install/index.php @@ -139,7 +139,7 @@ } function is_server_https() { - return (!empty($_SERVER['HTTPS']) && ($_SERVER['HTTPS'] != 'off')) || $_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https'; + return (!empty($_SERVER['HTTPS']) && ($_SERVER['HTTPS'] != 'off')) || (!empty($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https'); } function make_self_url_path() {