|
|
@ -927,7 +927,7 @@ function mod_ban_post($board, $delete, $post, $token = false) { |
|
|
|
if (!hasPermission($config['mod']['delete'], $board)) |
|
|
|
error($config['error']['noaccess']); |
|
|
|
|
|
|
|
$security_token = make_secure_link_token($board . '/ban' . ($delete ? '&delete' : '') . '/' . $post); |
|
|
|
$security_token = make_secure_link_token($board . '/ban/' . $post); |
|
|
|
|
|
|
|
$query = prepare(sprintf('SELECT `ip`, `thread` FROM `posts_%s` WHERE `id` = :id', $board)); |
|
|
|
$query->bindValue(':id', $post); |
|
|
|