diff options
| author | czaks <marcin@6irc.net> | 2013-07-31 21:03:13 -0400 |
|---|---|---|
| committer | czaks <marcin@6irc.net> | 2013-07-31 21:03:13 -0400 |
| commit | 83844b5e3e5e29c71f1820901928eb5030eda6cb (patch) | |
| tree | 33126ec603d83aebc5575f45e7388766de506ce9 /templates/themes/rrdtool/theme.php | |
| parent | 03d91df1d8af49aa1fd9e87fa8e9643b52fd52d9 (diff) | |
| parent | 0f9df0ac6608d3398cd480465dcab1b0227ec9c0 (diff) | |
Merge branch 'master' of https://github.com/savetheinternet/Tinyboard
Conflicts:
inc/functions.php
Diffstat (limited to 'templates/themes/rrdtool/theme.php')
| -rw-r--r-- | templates/themes/rrdtool/theme.php | 5 |
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', |
