bans.php: fix typo in findSingleNoGc query

This commit is contained in:
Zankaria 2024-07-23 19:49:04 +02:00
parent dfef661910
commit a0049aff28

View file

@ -72,7 +72,7 @@ class Bans {
static private function findSingleNoGc($ban_id) {
$query = prepare(
'SELECT ``bans``.* FROM ``bans``
WHERE ``bans``.id = :id AND ip
WHERE ``bans``.id = :id
ORDER BY `expires` IS NULL, `expires` DESC
LIMIT 1'
);