diff options
| author | Alyssa Rowan <alyssa.rowan@gmail.com> | 2012-03-31 10:33:07 +1100 |
|---|---|---|
| committer | Alyssa Rowan <alyssa.rowan@gmail.com> | 2012-03-31 10:33:07 +1100 |
| commit | 52443d3da98e992953d8214b7848350f70d02336 (patch) | |
| tree | af2c44838128a2866efd76dc767ef8609cfffb22 /mod.php | |
| parent | 1e88a003cfd5e433a7bbbb4fa3e2f0d2e415e8d3 (diff) | |
Fixed bug with report clearing
Diffstat (limited to 'mod.php')
| -rw-r--r-- | mod.php | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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)); } |
