mirror of
https://github.com/Icinga/icingaweb2-module-businessprocess.git
synced 2026-01-16 17:52:52 -05:00
ProcessProblemsBadge: Fix variable $count is probably undefined
This commit is contained in:
parent
52732dc3c7
commit
74c3440ef9
1 changed files with 1 additions and 3 deletions
|
|
@ -19,12 +19,10 @@ class ProcessProblemsBadge extends BadgeNavigationItemRenderer
|
|||
|
||||
public function getCount()
|
||||
{
|
||||
$count = 0;
|
||||
if ($this->count === null) {
|
||||
$storage = LegacyStorage::getInstance();
|
||||
$count = 0;
|
||||
$bp = $storage->loadProcess($this->getBpConfigName());
|
||||
|
||||
|
||||
foreach ($bp->getRootNodes() as $rootNode) {
|
||||
if (! $rootNode->isEmpty() &&
|
||||
$rootNode->getState() !== $rootNode::ICINGA_PENDING
|
||||
|
|
|
|||
Loading…
Reference in a new issue