diff --git a/pandora_console/include/class/AgentWizard.class.php b/pandora_console/include/class/AgentWizard.class.php index ff78c525bf..68bbbee0ee 100644 --- a/pandora_console/include/class/AgentWizard.class.php +++ b/pandora_console/include/class/AgentWizard.class.php @@ -2408,8 +2408,8 @@ class AgentWizard extends HTML } } - // If value comes Null, must return a empty value. - $value = ($value ?? ''); + // If value comes empty, must return a "Empty" value for view it in console. + $value = (empty($value) === true) ? ''.__('Empty').'' : $value; return $value; } @@ -3332,7 +3332,7 @@ class AgentWizard extends HTML } else { preg_match('/\.\d+$/', $key, $index); $tmp = explode(': ', $oid_unit); - $output[$index[0]] = $tmp[1]; + $output[$index[0]] = ($tmp[1] ?? ''); } } }