Put each global on a new line

This commit is contained in:
Stanislas Dolcini 2018-10-02 22:41:10 +02:00
parent d32b8a6452
commit 94ceb10771

View file

@ -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));