mirror of
https://github.com/Icinga/icingaweb2-module-businessprocess.git
synced 2026-02-17 01:41:44 -05:00
Renderer: Fix that !empty($elements) is always true
This commit is contained in:
parent
9e67b56bca
commit
e638fade56
1 changed files with 1 additions and 3 deletions
|
|
@ -169,8 +169,6 @@ abstract class Renderer extends HtmlDocument
|
|||
*/
|
||||
public function renderStateBadges($summary, $totalChildren)
|
||||
{
|
||||
$elements = [];
|
||||
|
||||
$itemCount = Html::tag(
|
||||
'span',
|
||||
[
|
||||
|
|
@ -181,7 +179,7 @@ abstract class Renderer extends HtmlDocument
|
|||
sprintf(mtp('businessprocess', '%u Child', '%u Children', $totalChildren), $totalChildren)
|
||||
);
|
||||
|
||||
$elements[] = array_filter([
|
||||
$elements = array_filter([
|
||||
$this->createBadgeGroup($summary, 'CRITICAL'),
|
||||
$this->createBadgeGroup($summary, 'UNKNOWN'),
|
||||
$this->createBadgeGroup($summary, 'WARNING'),
|
||||
|
|
|
|||
Loading…
Reference in a new issue