]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
better better call
authorEvan Prodromou <evan@status.net>
Tue, 24 Apr 2012 17:19:09 +0000 (13:19 -0400)
committerEvan Prodromou <evan@status.net>
Tue, 24 Apr 2012 17:19:09 +0000 (13:19 -0400)
lib/util.php

index b99ba9b1ab544efa704e0e058f25aa95c70ab48a..a061d17739356cc0bc9643a39bec2106513b7efb 100644 (file)
@@ -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?)