diff --git a/htdocs/main.inc.php b/htdocs/main.inc.php index ddb74e0d6ec..85ba64c6f96 100644 --- a/htdocs/main.inc.php +++ b/htdocs/main.inc.php @@ -83,9 +83,9 @@ clearstatcache(); //XAVIER DUTOIT 18/09/2003 : si l'utilisateur n'est pas authentifié apache, on essaie pear Auth -if (!empty ($GLOBALS["REMOTE_USER"])) +if (!empty ($HTTP_SERVER_VARS["REMOTE_USER"])) { - $user->fetch($GLOBALS["REMOTE_USER"]); + $user->fetch($HTTP_SERVER_VARS["REMOTE_USER"]); } else {