From fb31ff1af7edae9686f6bf52af126fbef6bde79f Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Tue, 24 Apr 2012 13:19:09 -0400 Subject: [PATCH] better better call --- lib/util.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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?) -- 2.39.5