1
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2025-07-22 14:16:00 +00:00

fix column naming error in query to count new posts

This commit is contained in:
ak4t0sh 2014-09-18 13:48:38 +02:00
parent 22bbbd5c23
commit d39f06473f

View file

@ -60,7 +60,7 @@ try {
} }
$nb = 0; $nb = 0;
if (($stmt = $dbh->query("SELECT count(id) FROM {$table_prefix}forum_posts WHERE timemodified > $graph_period")) != false) { if (($stmt = $dbh->query("SELECT count(id) FROM {$table_prefix}forum_posts WHERE modified > $graph_period")) != false) {
$nb = $stmt->fetchColumn(); $nb = $stmt->fetchColumn();
} }
echo "forum_posts.value $nb\n"; echo "forum_posts.value $nb\n";