auth.php: remove unused global

This commit is contained in:
Zankaria 2025-04-16 21:06:03 +02:00
parent 4ef10e26fc
commit 2f69af8267

View file

@ -69,7 +69,7 @@ function test_password(string $db_hash, string|int $version, string $input_passw
}
function login(string $username, string $password): array|false {
global $mod, $config;
global $mod;
$query = prepare("SELECT `id`, `type`, `boards`, `password`, `version` FROM ``mods`` WHERE BINARY `username` = :username");
$query->bindValue(':username', $username);