summaryrefslogtreecommitdiffstats
path: root/frontends/php/sysmap.php
diff options
context:
space:
mode:
authorsasha <sasha@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2008-08-05 12:01:53 +0000
committersasha <sasha@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2008-08-05 12:01:53 +0000
commit31d9eeed8ba49cac9b2b9ebb3d1c77558df5ff0f (patch)
tree00ed2cfb5b7077ed95225b61f091dd3400f516ea /frontends/php/sysmap.php
parentb1a528879c1e7e7d7886a273cf954741d057e038 (diff)
downloadzabbix-31d9eeed8ba49cac9b2b9ebb3d1c77558df5ff0f.tar.gz
zabbix-31d9eeed8ba49cac9b2b9ebb3d1c77558df5ff0f.tar.xz
zabbix-31d9eeed8ba49cac9b2b9ebb3d1c77558df5ff0f.zip
- [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
Diffstat (limited to 'frontends/php/sysmap.php')
-rw-r--r--frontends/php/sysmap.php8
1 files changed, 4 insertions, 4 deletions
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();