|
|
@ -113,9 +113,6 @@ |
|
|
|
$query->bindValue(':limit', $config['mod']['recent_reports'], PDO::PARAM_INT); |
|
|
|
$query->execute() or error(db_error($query)); |
|
|
|
|
|
|
|
if($query->rowCount() < 1) |
|
|
|
$body = '(Empty.)'; |
|
|
|
else { |
|
|
|
while($report = $query->fetch()) { |
|
|
|
$p_query = prepare(sprintf("SELECT * FROM `posts_%s` WHERE `id` = :id", $report['uri'])); |
|
|
|
$p_query->bindValue(':id', $report['post'], PDO::PARAM_INT); |
|
|
@ -151,7 +148,6 @@ |
|
|
|
'</div>'; |
|
|
|
$body .= $po->build(true) . '<hr/>'; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
$query = query("SELECT COUNT(`id`) AS `count` FROM `reports`") or error(db_error()); |
|
|
|
$count = $query->fetch(); |
|
|
|