[bugfix]ban appeals (was also present in tinyboard)

This commit is contained in:
kaf 2014-09-25 20:59:24 +00:00
parent cb7b7d070c
commit 9cee5f6c61

View File

@ -739,7 +739,7 @@ function displayBan($ban) {
$pending_appeal = false;
if ($config['ban_appeals']) {
$query = query("SELECT `time`, `denied` FROM `ban_appeals` WHERE `ban_id` = " . (int)$ban['id']) or error(db_error());
$query = query("SELECT `time`, `denied` FROM ``ban_appeals`` WHERE `ban_id` = " . (int)$ban['id']) or error(db_error());
while ($ban_appeal = $query->fetch(PDO::FETCH_ASSOC)) {
if ($ban_appeal['denied']) {
$denied_appeals[] = $ban_appeal['time'];