From 3a3aec221a4a4c955d46d029fce428fe3353a243 Mon Sep 17 00:00:00 2001 From: WGH Date: Thu, 20 Jun 2013 00:54:02 +0400 Subject: fixes "undefined index" notice --- install/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'install') diff --git a/install/index.php b/install/index.php index 83f3d3821..f71a779fa 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; } -- cgit v1.2.3