Skip to content

Commit

Permalink
ProblemsBadge: Don't return a string where only integers are expected
Browse files Browse the repository at this point in the history
fixes #948
  • Loading branch information
nilmerg committed Mar 22, 2024
1 parent 20d9f8b commit 8c13f5b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions library/Icingadb/Web/Navigation/Renderer/ProblemsBadge.php
Expand Up @@ -52,7 +52,7 @@ public function getProblemsCount()
return $this->count;
}

$this->count = $this->round($count);
$this->count = $count;

$this->setState(static::STATE_CRITICAL);
}
Expand Down Expand Up @@ -146,7 +146,7 @@ protected function createBadge()
$count = $this->getProblemsCount();

if ($count) {
return (new StateBadge($count, $this->getState()))
return (new StateBadge($this->round($count), $this->getState()))
->addAttributes(['class' => 'badge', 'title' => $this->getTitle()]);
}

Expand Down

0 comments on commit 8c13f5b

Please sign in to comment.