summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--templates/themes/rrdtool/theme.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/templates/themes/rrdtool/theme.php b/templates/themes/rrdtool/theme.php
index 0482c688..37b92cd9 100644
--- a/templates/themes/rrdtool/theme.php
+++ b/templates/themes/rrdtool/theme.php
@@ -43,12 +43,13 @@
$query = prepare(sprintf("SELECT COUNT(*) AS `count` FROM `posts_%s` WHERE `time` >= :time", $board));
$query->bindValue(':time', time() - $this->interval, PDO::PARAM_INT):
$query->exeucte() or error(db_error($query));
- $query->fetch();
+ $count = $query->fetch();
+ $count = $count['count'];
if(!rrd_update($file, Array(
'-t',
'posts',
- 'N:')))
+ 'N:' . $count)))
error('RRDtool failed: ' . htmlentities(rrd_error()));
}
}