Merge branch 'ent-10257-guardia-14543-no-muestra-modulos-no-init-en-vista-monitor-detail' into 'develop' (^JJOS)

Fix empty module data list view

See merge request artica/pandorafms!5472
This commit is contained in:
Jimmy Olano 2023-02-28 17:35:56 +00:00
commit a8d0f79540
1 changed files with 1 additions and 1 deletions

View File

@ -2010,7 +2010,7 @@ if (!empty($result)) {
} else {
$sub_string = substr(io_safe_output($row['datos']), 0, 12);
if ($module_value == $sub_string) {
if ($module_value == 0 && !$sub_string) {
if ((empty($module_value) === true || $module_value == 0) && !$sub_string) {
$salida = 0;
} else {
$data_macro = modules_get_unit_macro($row['datos'], $row['unit']);