diff --git a/library/Businessprocess/Web/Navigation/Renderer/ProcessProblemsBadge.php b/library/Businessprocess/Web/Navigation/Renderer/ProcessProblemsBadge.php index a31a74b..575dc5e 100644 --- a/library/Businessprocess/Web/Navigation/Renderer/ProcessProblemsBadge.php +++ b/library/Businessprocess/Web/Navigation/Renderer/ProcessProblemsBadge.php @@ -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