summaryrefslogtreecommitdiff
path: root/templates/themes/rrdtool/theme.php
diff options
context:
space:
mode:
authorMichael Foster <savetheinternet@tinyboard.org>2013-07-31 20:51:43 -0400
committerMichael Foster <savetheinternet@tinyboard.org>2013-07-31 20:51:43 -0400
commit328484bee7cab9ce354121413cc8d96c3e227aea (patch)
tree7adf01c48cbe1970c159da182292b5c7ed48d958 /templates/themes/rrdtool/theme.php
parent6bbe407e18681f2812db4345036bb5ae639f5973 (diff)
SQL cleanup
Diffstat (limited to 'templates/themes/rrdtool/theme.php')
-rw-r--r--templates/themes/rrdtool/theme.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/templates/themes/rrdtool/theme.php b/templates/themes/rrdtool/theme.php
index 68fc1850..0e0a2f15 100644
--- a/templates/themes/rrdtool/theme.php
+++ b/templates/themes/rrdtool/theme.php
@@ -61,9 +61,8 @@
// debug just the graphing (not updating) with the --debug switch
if (!isset($argv[1]) || $argv[1] != '--debug') {
// Update graph
- $query = query(sprintf("SELECT MAX(`id`) AS `count` FROM `posts_%s`", $board));
- $count = $query->fetch();
- $count = $count['count'];
+ $query = query(sprintf("SELECT MAX(`id`) FROM `posts_%s`", $board));
+ $count = $query->fetchColumn();
if (!rrd_update($file, Array(
'-t',