forked from leftypol/leftypol
Add source IP to ban_appeals table
This commit is contained in:
parent
c696ad4fa2
commit
7e3a531aa5
3 changed files with 8 additions and 5 deletions
|
@ -1066,7 +1066,7 @@ function mod_ban_appeals() {
|
|||
return;
|
||||
}
|
||||
|
||||
$query = query("SELECT *, ``ban_appeals``.`id` AS `id` FROM ``ban_appeals``
|
||||
$query = query("SELECT *, ``ban_appeals``.`id` AS `id`, ``ban_appeals``.`source_ip` AS `source_ip` 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());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue