From 5d1b426fa31eb847f45f65b027b565ea7cc29959 Mon Sep 17 00:00:00 2001 From: czaks Date: Sat, 11 Oct 2014 20:13:05 +0200 Subject: [PATCH] fix bans.php on removing a ban by a semi-privileged mod --- inc/bans.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/bans.php b/inc/bans.php index 4624e639..6ee27dcc 100644 --- a/inc/bans.php +++ b/inc/bans.php @@ -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;