forked from leftypol/leftypol
Minor format post.php
This commit is contained in:
parent
56b6d6b1aa
commit
df2fe0e60f
1 changed files with 5 additions and 4 deletions
9
post.php
9
post.php
|
@ -396,11 +396,12 @@ function handle_report()
|
||||||
|
|
||||||
checkDNSBL();
|
checkDNSBL();
|
||||||
|
|
||||||
// Check if board exists
|
// Check if board exists.
|
||||||
if (!openBoard($_POST['board']))
|
if (!openBoard($_POST['board'])) {
|
||||||
error($config['error']['noboard']);
|
error($config['error']['noboard']);
|
||||||
|
}
|
||||||
|
|
||||||
// Check if banned
|
// Check if banned.
|
||||||
checkBan($board['uri']);
|
checkBan($board['uri']);
|
||||||
|
|
||||||
if (empty($report)) {
|
if (empty($report)) {
|
||||||
|
@ -436,7 +437,7 @@ function handle_report()
|
||||||
markup($reason);
|
markup($reason);
|
||||||
|
|
||||||
foreach ($report as $id) {
|
foreach ($report as $id) {
|
||||||
$query = prepare(sprintf("SELECT `id`,`thread` , `body_nomarkup` FROM ``posts_%s`` WHERE `id` = :id", $board['uri']));
|
$query = prepare(sprintf("SELECT `id`,`thread`, `body_nomarkup` FROM ``posts_%s`` WHERE `id` = :id", $board['uri']));
|
||||||
$query->bindValue(':id', $id, PDO::PARAM_INT);
|
$query->bindValue(':id', $id, PDO::PARAM_INT);
|
||||||
$query->execute() or error(db_error($query));
|
$query->execute() or error(db_error($query));
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue