1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2024-11-24 07:30:10 +01:00

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()) { if($report = $query->fetch()) {
modLog('Dismissed a report for post #' . $report['post'], $report['board']); 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->bindValue(':post', $report['post'], PDO::PARAM_INT);
$query->execute() or error(db_error($query)); $query->execute() or error(db_error($query));
} }