From 40e45a2a39cdf767a96edf4d6472f99a8fe978f4 Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Mon, 26 May 2014 14:57:18 +0000 Subject: [PATCH] monitoring/lists: Don't render unexistant controls Even PHP code in HTML comments will be executed. As the filter object sometimes failes, this can result in an invisible "breaking" exception. refs #6031 --- modules/monitoring/application/views/scripts/list/hosts.phtml | 2 +- .../monitoring/application/views/scripts/list/services.phtml | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/modules/monitoring/application/views/scripts/list/hosts.phtml b/modules/monitoring/application/views/scripts/list/hosts.phtml index 29a5597a6..4b13acb4b 100644 --- a/modules/monitoring/application/views/scripts/list/hosts.phtml +++ b/modules/monitoring/application/views/scripts/list/hosts.phtml @@ -4,7 +4,7 @@ $helper = $this->getHelper('MonitoringState');
tabs ?>
-Sort by sortControl->render($this); ?> +Sort by sortControl->render($this); ?>
paginationControl($hosts, null, null, array('preserve' => $this->preserve)); ?> diff --git a/modules/monitoring/application/views/scripts/list/services.phtml b/modules/monitoring/application/views/scripts/list/services.phtml index 346555a07..c807e68c8 100644 --- a/modules/monitoring/application/views/scripts/list/services.phtml +++ b/modules/monitoring/application/views/scripts/list/services.phtml @@ -5,7 +5,6 @@ if (!$this->compact): ?>
tabs ?>
- Sort by sortControl ?>