diff --git a/code/web/public_php/login/r2_login.php b/code/web/public_php/login/r2_login.php index 9f4ff1ab2..2558a0410 100755 --- a/code/web/public_php/login/r2_login.php +++ b/code/web/public_php/login/r2_login.php @@ -148,8 +148,11 @@ function err_callback($errno, $errmsg, $filename, $linenum, $vars) */ function checkUserValidity($login, $password, $clientApplication, $cp, &$id, &$reason, &$priv, &$extended, &$domainId, $lang) { - global $DBHost, $DBUserName, $DBPassword, $DBName, $AcceptUnknownUser; - + global $DBHost; + global $DBUserName; + global $DBPassword; + global $DBName; + global $AcceptUnknownUser; setMsgLanguage($lang); $link = mysqli_connect($DBHost, $DBUserName, $DBPassword) or die(errorMsgBlock(3004, 'main', $DBHost, $DBUserName));