monitoring: Count unhandled hosts once in hosts/show.phtml

This commit is contained in:
Eric Lippmann 2014-12-30 10:30:31 +01:00
parent c87733debc
commit 507aefa9dd

View File

@ -62,13 +62,14 @@
<?php if (! empty($unhandledObjects)): ?>
<h3>
<?php $unhandledCount = count($unhandledObjects) ?>
<?= sprintf(
$this->translatePlural(
'%u Unhandled Host Problem',
'%u Unhandled Host Problems',
count($unhandledObjects)
$unhandledCount
),
count($unhandledObjects)
$unhandledCount
) ?>
</h3>
<div>