summaryrefslogtreecommitdiff
path: root/mod.php
diff options
context:
space:
mode:
authorAlyssa Rowan <alyssa.rowan@gmail.com>2012-03-31 10:33:07 +1100
committerAlyssa Rowan <alyssa.rowan@gmail.com>2012-03-31 10:33:07 +1100
commit52443d3da98e992953d8214b7848350f70d02336 (patch)
treeaf2c44838128a2866efd76dc767ef8609cfffb22 /mod.php
parent1e88a003cfd5e433a7bbbb4fa3e2f0d2e415e8d3 (diff)
Fixed bug with report clearing
Diffstat (limited to 'mod.php')
-rw-r--r--mod.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/mod.php b/mod.php
index 64c3e8fb..ff5840c4 100644
--- a/mod.php
+++ b/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));
}