added option for showing the mod in ban page.

also fixes issue where the Staff is not shown in ban appeals.
This commit is contained in:
Juan Tamad 2014-09-01 06:30:33 +08:00
parent f7b6693c02
commit 53ada6a5ff
4 changed files with 15 additions and 3 deletions

View file

@ -953,6 +953,7 @@ function mod_ban_appeals() {
$query = query("SELECT *, ``ban_appeals``.`id` AS `id` FROM ``ban_appeals``
LEFT JOIN ``bans`` ON `ban_id` = ``bans``.`id`
LEFT JOIN ``mods`` ON ``bans``.`creator` = ``mods``.`id`
WHERE `denied` != 1 ORDER BY `time`") or error(db_error());
$ban_appeals = $query->fetchAll(PDO::FETCH_ASSOC);
foreach ($ban_appeals as &$ban) {