forked from leftypol/leftypol
Add optional database table prefix (issue #118; see issue comments for details)
This commit is contained in:
parent
232f4ff868
commit
a052a791b5
18 changed files with 177 additions and 165 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue