Fixed bug with report clearing

This commit is contained in:
Alyssa Rowan 2012-03-31 10:33:07 +11:00
parent 1e88a003cf
commit 52443d3da9

View File

@ -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));
}