fix bans.php on removing a ban by a semi-privileged mod

This commit is contained in:
czaks 2014-10-11 20:13:05 +02:00
parent 3a552e5b76
commit 5d1b426fa3

View File

@ -220,7 +220,7 @@ class Bans {
if ($boards && $boards[0] == '*') $boards = false;
if ($modlog) {
$query = query("SELECT `ipstart`, `ipend` FROM ``bans`` WHERE `id` = " . (int)$ban_id) or error(db_error());
$query = query("SELECT `ipstart`, `ipend`, `board` FROM ``bans`` WHERE `id` = " . (int)$ban_id) or error(db_error());
if (!$ban = $query->fetch(PDO::FETCH_ASSOC)) {
// Ban doesn't exist
return false;