summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2013-06-19 14:43:58 -0700
committerAndrew Dolgov <[email protected]>2013-06-19 14:43:58 -0700
commit17ca9c640a7748640b77742f827e271ceff0885e (patch)
treef6b96adc478011b3cc31faab5765f405fe0cb5f7
parenta9000b03443d64ac5d7137c868862a5e1496e871 (diff)
parent3a3aec221a4a4c955d46d029fce428fe3353a243 (diff)
Merge pull request #228 from WGH-/installer_undefined_index
fixes "undefined index HTTPS" notice in installer script
-rw-r--r--install/index.php2
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;
}