mirror of
https://github.com/webmin/webmin.git
synced 2026-05-04 22:30:33 +01:00
Always define STATUS_* variables in status monitoring messages
The corresponding IF- variables also wouldn't be defined either so there was no way to avoid literal STATUS_* output for monitors which didn't provide useful values for these variables.
This commit is contained in:
@@ -518,7 +518,7 @@ if ($tmpl && $tmpl->{$type}) {
|
||||
}
|
||||
if ($stat) {
|
||||
foreach my $k ('value', 'nice_value', 'desc') {
|
||||
$hash{'STATUS_'.uc($k)} = $stat->{$k} if ($stat->{$k});
|
||||
$hash{'STATUS_'.uc($k)} = $stat->{$k} ? $stat->{$k} : "";
|
||||
}
|
||||
}
|
||||
foreach my $k (keys %$serv) {
|
||||
|
||||
Reference in New Issue
Block a user