fix bans.php on removing a ban by a semi-privileged mod
This commit is contained in:
parent
3a552e5b76
commit
5d1b426fa3
@ -220,7 +220,7 @@ class Bans {
|
|||||||
if ($boards && $boards[0] == '*') $boards = false;
|
if ($boards && $boards[0] == '*') $boards = false;
|
||||||
|
|
||||||
if ($modlog) {
|
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)) {
|
if (!$ban = $query->fetch(PDO::FETCH_ASSOC)) {
|
||||||
// Ban doesn't exist
|
// Ban doesn't exist
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user