Fixed bug with report clearing
This commit is contained in:
parent
1e88a003cf
commit
52443d3da9
3
mod.php
3
mod.php
@ -1642,7 +1642,8 @@
|
||||
if($report = $query->fetch()) {
|
||||
modLog('Dismissed a report for post #' . $report['post'], $report['board']);
|
||||
|
||||
$query = prepare("DELETE FROM `reports` WHERE `post` = :post");
|
||||
$query = prepare("DELETE FROM `reports` WHERE `post` = :post AND `board` = :board");
|
||||
$query->bindValue(':board', $report['board'], PDO::PARAM_INT);
|
||||
$query->bindValue(':post', $report['post'], PDO::PARAM_INT);
|
||||
$query->execute() or error(db_error($query));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user