diff options
Diffstat (limited to 'modules-available')
-rw-r--r-- | modules-available/statistics/pages/summary.inc.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/modules-available/statistics/pages/summary.inc.php b/modules-available/statistics/pages/summary.inc.php index 6fa37c61..ce67070e 100644 --- a/modules-available/statistics/pages/summary.inc.php +++ b/modules-available/statistics/pages/summary.inc.php @@ -84,7 +84,8 @@ class SubPage } $data['json'] = json_encode(array('labels' => $labels, 'datasets' => array($points1, $points2))); if (Module::get('runmode') !== false) { - $res = Database::queryFirst('SELECT Count(*) AS cnt FROM runmode'); + $res = Database::queryFirst('SELECT Count(*) AS cnt FROM machine m INNER JOIN runmode r USING (machineuuid)' + . " $join WHERE $where", $args); $data['runmode'] = $res['cnt']; } // Draw |