fixes "undefined index" notice

This commit is contained in:
WGH 2013-06-20 00:54:02 +04:00
parent b5a9ef5ebc
commit 3a3aec221a
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}