diff --git a/emhttp/plugins/dynamix/include/DefaultPageLayout.php b/emhttp/plugins/dynamix/include/DefaultPageLayout.php
index 09781b99f..492c3016e 100644
--- a/emhttp/plugins/dynamix/include/DefaultPageLayout.php
+++ b/emhttp/plugins/dynamix/include/DefaultPageLayout.php
@@ -863,40 +863,47 @@ unset($pages,$page,$pgs,$pg,$icon,$nchan,$running,$start,$stop,$row,$script,$opt
annotate('Footer');
function getArrayStatus($var) {
- $progress = (_var($var,'fsProgress')!='') ? "•{$var['fsProgress']}" : "";
-
+ $progress = (_var($var,'fsProgress')!='') ? $var['fsProgress'] : "";
+
$statusMap = [
'Stopped' => ['class' => 'red', 'icon' => 'stop-circle', 'text' => _('Array Stopped')],
'Starting' => ['class' => 'orange', 'icon' => 'pause-circle', 'text' => _('Array Starting')],
'Stopping' => ['class' => 'orange', 'icon' => 'pause-circle', 'text' => _('Array Stopping')],
'default' => ['class' => 'green', 'icon' => 'play-circle', 'text' => _('Array Started')]
];
-
+
$state = _var($var,'fsState');
$status = $statusMap[$state] ?? $statusMap['default'];
-
- return sprintf(
- " %s%s",
- $status['class'],
- $status['icon'],
- $status['text'],
- $progress
- );
+
+ return [
+ 'class' => $status['class'],
+ 'icon' => $status['icon'],
+ 'text' => $status['text'],
+ 'progress' => $progress
+ ];
}
?>