From: Evan Prodromou Date: Tue, 24 Apr 2012 17:19:09 +0000 (-0400) Subject: better better call X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=fb31ff1af7edae9686f6bf52af126fbef6bde79f;p=quix0rs-gnu-social.git better better call --- diff --git a/lib/util.php b/lib/util.php index b99ba9b1ab..a061d17739 100644 --- a/lib/util.php +++ b/lib/util.php @@ -1311,7 +1311,7 @@ function common_inject_session($url, $serverpart = null) $serverpart = parse_url($url, PHP_URL_HOST); } - $currentServer = (array_key_exists('HTTP_HOST')) ? $_SERVER['HTTP_HOST'] : null; + $currentServer = (array_key_exists('HTTP_HOST', $_SERVER)) ? $_SERVER['HTTP_HOST'] : null; // Are we pointing to another server (like an SSL server?)