Fix empty module data list view

This commit is contained in:
Calvo 2023-01-27 13:43:23 +01:00
parent 3f000f403a
commit 7111fd66e2
1 changed files with 1 additions and 1 deletions

View File

@ -1939,7 +1939,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']);