From ab326fc8fb13d7f7c1f873d3d6fce3f3baaee17e Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Mon, 25 Sep 2023 15:27:54 +0200 Subject: [statistics] Fix status-icon --- modules-available/statistics/pages/hints.inc.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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'); -- cgit v1.2.3-55-g7522