1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2025-02-02 04:47:57 +01:00

7.4 compatibility (updated)

This commit is contained in:
Lorenzo Yario 2024-12-22 15:02:58 -06:00 committed by GitHub
parent 40571f2001
commit 3b9b23035e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -94,7 +94,7 @@ class Bans {
}
}
static private function findAutoGc(?string $ip, string|false $board, bool $get_mod_info, bool $require_ban_view, ?int $ban_id): array {
static private function findAutoGc(?string $ip, $board, bool $get_mod_info, bool $require_ban_view, ?int $ban_id): array {
$query = prepare('SELECT ``bans``.*' . ($get_mod_info ? ', `username`' : '') . ' FROM ``bans``
' . ($get_mod_info ? 'LEFT JOIN ``mods`` ON ``mods``.`id` = `creator`' : '') . '
WHERE