]> git.wh0rd.org - tt-rss.git/commitdiff
Merge pull request #228 from WGH-/installer_undefined_index
authorAndrew Dolgov <fox+ttrss@fakecake.org>
Wed, 19 Jun 2013 21:43:58 +0000 (14:43 -0700)
committerAndrew Dolgov <fox+ttrss@fakecake.org>
Wed, 19 Jun 2013 21:43:58 +0000 (14:43 -0700)
fixes "undefined index HTTPS" notice in installer script

install/index.php

index 83f3d3821b4fb87096f58e5b3cdc970222a44f19..f71a779faa5ea186b13f0426cda02e458f23e1ff 100644 (file)
        }
 
        function make_self_url_path() {
-               $url_path = ($_SERVER['HTTPS'] != "on" ? 'http://' :  'https://') . $_SERVER["HTTP_HOST"] . parse_url($_SERVER["REQUEST_URI"], PHP_URL_PATH);
+               $url_path = ((!isset($_SERVER['HTTPS']) || $_SERVER['HTTPS'] != "on") ? 'http://' :  'https://') . $_SERVER["HTTP_HOST"] . parse_url($_SERVER["REQUEST_URI"], PHP_URL_PATH);
 
                return $url_path;
        }