]> git.wh0rd.org - tt-rss.git/commitdiff
Fix undefined index warning in installation.
authorTobias Kappé <tobias.kappe@gmail.com>
Sun, 12 Aug 2018 13:54:02 +0000 (14:54 +0100)
committerTobias Kappé <tobias.kappe@gmail.com>
Sun, 12 Aug 2018 14:26:54 +0000 (15:26 +0100)
install/index.php

index f1547982c4534285ddbb7beeaf6dd2e00f3aaf7e..350c2f2d03e07bea2b52a419774a9fef6a972d81 100755 (executable)
        }
 
        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() {