From e1b3c4281825b9697830429bc19cd0b7647b6497 Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Mon, 3 Aug 2015 15:22:14 +0200 Subject: [PATCH] Host Overview: Use $query->hasResult() instead of $query->count() refs #9632 --- .../application/views/scripts/list/hosts.phtml | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/modules/monitoring/application/views/scripts/list/hosts.phtml b/modules/monitoring/application/views/scripts/list/hosts.phtml index b697c8f6a..4ff367fd8 100644 --- a/modules/monitoring/application/views/scripts/list/hosts.phtml +++ b/modules/monitoring/application/views/scripts/list/hosts.phtml @@ -15,14 +15,6 @@ if (! $this->compact): ?>
-translate('No hosts found matching the filter') . '
'; - return; -} -?> -
+hasResult()): ?> + translate('No hosts found matching the filter'); ?> +