Removed pointless text

This commit is contained in:
Savetheinternet 2011-02-20 18:42:00 +11:00
parent dd845f4c7e
commit 11ea39a22c

View File

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