summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorSavetheinternet <savetheinternet@tinyboard.org>2011-06-07 15:25:05 +1000
committerSavetheinternet <savetheinternet@tinyboard.org>2011-06-07 15:25:05 +1000
commit91936502dc9cf3f75e86081d753e371deea3f6ca (patch)
tree62ab8604753aa4c8a39ea74d6c2c4444d5a312fe /templates
parent357d066730e34f4a009e4714185caa4e0fd0f1c2 (diff)
update with post count
Diffstat (limited to 'templates')
-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()));
}
}