]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
correct superglobal variable name
authorEvan Prodromou <evan@status.net>
Sun, 10 Jan 2010 00:31:25 +0000 (16:31 -0800)
committerEvan Prodromou <evan@status.net>
Sun, 10 Jan 2010 00:31:25 +0000 (16:31 -0800)
classes/Status_network.php

index 8dff879dfeb42d59ea2a2b98c52ffe2a49bfc531..dce3e0b8f5f0b9750a91a5551e12453e4dc688d8 100644 (file)
@@ -154,10 +154,10 @@ class Status_network extends DB_DataObject
             // Redirect to the right URL
 
             if (!empty($sn->hostname) &&
-                empty($SERVER['HTTPS']) &&
+                empty($_SERVER['HTTPS']) &&
                 0 != strcasecmp($sn->hostname, $servername)) {
                 $sn->redirectTo('http://'.$sn->hostname.$_SERVER['REQUEST_URI']);
-            } else if (!empty($SERVER['HTTPS']) &&
+            } else if (!empty($_SERVER['HTTPS']) &&
                        0 != strcasecmp($sn->sitename.'.'.$wildcard, $servername)) {
                 $sn->redirectTo('https://'.$sn->sitename.'.'.$wildcard.$_SERVER['REQUEST_URI']);
             }