From 31d9eeed8ba49cac9b2b9ebb3d1c77558df5ff0f Mon Sep 17 00:00:00 2001 From: sasha Date: Tue, 5 Aug 2008 12:01:53 +0000 Subject: - [DEV-198] Correct representation of disabled elements on the map (hosts, triggers) git-svn-id: svn://svn.zabbix.com/trunk@5870 97f52cf1-0a1b-0410-bd0e-c28be96e8082 --- frontends/php/sysmap.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'frontends/php/sysmap.php') diff --git a/frontends/php/sysmap.php b/frontends/php/sysmap.php index f4d3cbf5..5fdb3cbe 100644 --- a/frontends/php/sysmap.php +++ b/frontends/php/sysmap.php @@ -195,10 +195,10 @@ include_once "include/page_header.php"; nbsp($type), $db_element["x"], $db_element["y"], - new CImg("image.php?height=24&imageid=".$db_element["iconid_off"],"no image",NULL), - new CImg("image.php?height=24&imageid=".$db_element["iconid_on"],"no image",NULL), - new CImg("image.php?height=24&imageid=".$db_element["iconid_unknown"],"no image",NULL), - new CImg("image.php?height=24&imageid=".$db_element["iconid_disabled"],"no image",NULL) + $db_element["iconid_off"] ? new CImg("image.php?height=24&imageid=".$db_element["iconid_off"],"no image",NULL) : '-', + $db_element["iconid_on"] ? new CImg("image.php?height=24&imageid=".$db_element["iconid_on"],"no image",NULL) : '-', + $db_element["iconid_unknown"] ? new CImg("image.php?height=24&imageid=".$db_element["iconid_unknown"],"no image",NULL) : '-', + $db_element["iconid_disabled"] ? new CImg("image.php?height=24&imageid=".$db_element["iconid_disabled"],"no image",NULL) : '-' )); } $table->show(); -- cgit