diff options
author | Andrew Dolgov <[email protected]> | 2013-06-19 14:43:58 -0700 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2013-06-19 14:43:58 -0700 |
commit | 17ca9c640a7748640b77742f827e271ceff0885e (patch) | |
tree | f6b96adc478011b3cc31faab5765f405fe0cb5f7 | |
parent | a9000b03443d64ac5d7137c868862a5e1496e871 (diff) | |
parent | 3a3aec221a4a4c955d46d029fce428fe3353a243 (diff) |
Merge pull request #228 from WGH-/installer_undefined_index
fixes "undefined index HTTPS" notice in installer script
-rw-r--r-- | install/index.php | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |