mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-29 00:34:03 +02:00
Perfdata: Avoid passing null to number_format()
This commit is contained in:
parent
6fe2ef4698
commit
777d146ba1
@ -474,7 +474,7 @@ class Perfdata
|
||||
$html ? '<b>%s %s</b> (%s%%)' : '%s %s (%s%%)',
|
||||
htmlspecialchars($this->getLabel()),
|
||||
$this->format($this->value),
|
||||
number_format($this->getPercentage(), 2)
|
||||
number_format($this->getPercentage() ?? 0, 2)
|
||||
);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user