auth.php: remove unused global

This commit is contained in:
Zankaria 2025-04-16 21:06:03 +02:00
parent a16f02ce51
commit 93fc8f713b

View File

@ -79,7 +79,7 @@ function calc_cookie_name(bool $is_https, bool $is_path_jailed, string $base_nam
} }
function login(string $username, string $password): array|false { 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 = prepare("SELECT `id`, `type`, `boards`, `password`, `version` FROM ``mods`` WHERE BINARY `username` = :username");
$query->bindValue(':username', $username); $query->bindValue(':username', $username);