Add optional database table prefix (issue #118; see issue comments for details)
This commit is contained in:
@@ -61,7 +61,7 @@
|
||||
// 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`) FROM `posts_%s`", $board));
|
||||
$query = query(sprintf("SELECT MAX(`id`) FROM ``posts_%s``", $board));
|
||||
$count = $query->fetchColumn();
|
||||
|
||||
if (!rrd_update($file, Array(
|
||||
|
Reference in New Issue
Block a user