1
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2025-07-24 09:57:09 +00:00

remove useless naming in query

This commit is contained in:
ak4t0sh 2014-09-16 13:53:26 +02:00
parent e0ed244962
commit 10ffec61bf

View file

@ -58,7 +58,7 @@ try {
//Online users
$nbusers = 0;
if (($stmt = $dbh->query("SELECT count(id) AS users FROM {$table_prefix}user WHERE lastaccess > $graph_period")) != false) {
if (($stmt = $dbh->query("SELECT count(id) FROM {$table_prefix}user WHERE lastaccess > $graph_period")) != false) {
$nbusers = $stmt->fetchColumn();
}
echo "users_online.value $nbusers\n";