From 6ba6cb79404c02dc95648604148bfd0e1a89a66d Mon Sep 17 00:00:00 2001 From: "Alexander A. Klimov" Date: Thu, 23 Apr 2015 11:58:54 +0200 Subject: [PATCH] Improve layout of dictionaries in the host and service detail views resolves #8474 --- modules/monitoring/application/views/helpers/Customvar.php | 2 +- modules/monitoring/public/css/module.less | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/modules/monitoring/application/views/helpers/Customvar.php b/modules/monitoring/application/views/helpers/Customvar.php index 32391b6ce..87bde6b77 100644 --- a/modules/monitoring/application/views/helpers/Customvar.php +++ b/modules/monitoring/application/views/helpers/Customvar.php @@ -38,7 +38,7 @@ class Zend_View_Helper_Customvar extends Zend_View_Helper_Abstract protected function renderObject($object) { - if (empty($object)) { + if (0 === count((array) $object)) { return '{}'; } $out = "{