fixed errors in dashboard widget groups status

This commit is contained in:
Daniel Barbero Martin 2020-07-10 08:30:57 +02:00
parent 941dfc2b62
commit af87e8c621
1 changed files with 3 additions and 1 deletions

View File

@ -183,7 +183,9 @@ class SystemGroupStatusWidget extends Widget
$values = parent::decoders($decoder);
if (isset($decoder['status']) === true) {
if (is_array($decoder['status']) === true) {
if (is_array($decoder['status']) === true
&& count($decoder['status']) > 1
) {
$compatibilityStatus = [];
foreach ($decoder['status'] as $key => $value) {
switch ((int) $value) {