From: WGH Date: Wed, 19 Jun 2013 20:54:02 +0000 (+0400) Subject: fixes "undefined index" notice X-Git-Tag: 1.9~102^2 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=3a3aec221a4a4c955d46d029fce428fe3353a243;p=tt-rss.git fixes "undefined index" notice --- diff --git a/install/index.php b/install/index.php index 83f3d382..f71a779f 100644 --- a/install/index.php +++ b/install/index.php @@ -199,7 +199,7 @@ } 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; }