mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-29 16:55:05 +02:00
Merge branch 'ent-6054-Dashboard-group-status-mas-de-1-grupo' into 'develop'
fixed errors in dashboard widget groups status See merge request artica/pandorafms!3369
This commit is contained in:
commit
c86ec629cd
@ -183,7 +183,9 @@ class SystemGroupStatusWidget extends Widget
|
|||||||
$values = parent::decoders($decoder);
|
$values = parent::decoders($decoder);
|
||||||
|
|
||||||
if (isset($decoder['status']) === true) {
|
if (isset($decoder['status']) === true) {
|
||||||
if (is_array($decoder['status']) === true) {
|
if (is_array($decoder['status']) === true
|
||||||
|
&& count($decoder['status']) > 1
|
||||||
|
) {
|
||||||
$compatibilityStatus = [];
|
$compatibilityStatus = [];
|
||||||
foreach ($decoder['status'] as $key => $value) {
|
foreach ($decoder['status'] as $key => $value) {
|
||||||
switch ((int) $value) {
|
switch ((int) $value) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user