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:
parent
1e88a003cf
commit
52443d3da9
3
mod.php
3
mod.php
@ -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));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user