summaryrefslogtreecommitdiffstats
path: root/modules-available/statistics/pages
diff options
context:
space:
mode:
Diffstat (limited to 'modules-available/statistics/pages')
-rw-r--r--modules-available/statistics/pages/hints.inc.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/modules-available/statistics/pages/hints.inc.php b/modules-available/statistics/pages/hints.inc.php
index fbde5b45..bfb28c24 100644
--- a/modules-available/statistics/pages/hints.inc.php
+++ b/modules-available/statistics/pages/hints.inc.php
@@ -208,7 +208,10 @@ class SubPage
$q->addMachineColumn('state');
$q->addMachineColumn('cpumodel');
$q->addGlobalColumn('vmx-legacy')->addCondition('<>', 0);
- $list = $q->query()->fetchAll();
+ foreach ($q->query() as $row) {
+ $row['icon'] = StatisticsStyling::machineStateToIcon($row['state']);
+ $list[] = $row;
+ }
if (empty($list))
return;
ArrayUtil::sortByColumn($list, 'hostname');