diff --git a/setup/inc/class.setup.inc.php b/setup/inc/class.setup.inc.php index 43c15d7ee8..c313a0acfc 100644 --- a/setup/inc/class.setup.inc.php +++ b/setup/inc/class.setup.inc.php @@ -27,7 +27,7 @@ */ function loaddb() { - $ConfigDomain = $GLOBALS['HTTP_COOKIE_VARS']['ConfigDomain'] ? $GLOBALS['HTTP_COOKIE_VARS']['ConfigDomain'] : $GLOBALS['HTTP_POST_VARS']['ConfigDomain']; + $ConfigDomain = $GLOBALS['HTTP_POST_VARS']['ConfigDomain'] ? $GLOBALS['HTTP_POST_VARS']['ConfigDomain'] : $GLOBALS['HTTP_COOKIE_VARS']['ConfigDomain']; if(empty($ConfigDomain)) { /* This is to fix the reading of this value immediately after the cookie was set on login */