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