diff options
| author | hugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2004-11-20 11:02:57 +0000 |
|---|---|---|
| committer | hugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2004-11-20 11:02:57 +0000 |
| commit | 0e8da486996838bd3bd9ab36e44de2b690ba027d (patch) | |
| tree | ab165231081f3c8aaace422dad7ad33f13ba8eb7 /frontends/php/map.php | |
| parent | 386598f373bd37b7e463928f1cd0d3f872766ce5 (diff) | |
| download | zabbix-0e8da486996838bd3bd9ab36e44de2b690ba027d.tar.gz zabbix-0e8da486996838bd3bd9ab36e44de2b690ba027d.tar.xz zabbix-0e8da486996838bd3bd9ab36e44de2b690ba027d.zip | |
Minor change.
git-svn-id: svn://svn.zabbix.com/trunk@1496 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/map.php')
| -rw-r--r-- | frontends/php/map.php | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/frontends/php/map.php b/frontends/php/map.php index 73c04652..15f2cc86 100644 --- a/frontends/php/map.php +++ b/frontends/php/map.php @@ -282,10 +282,13 @@ // imagecolortransparent ($img, 0, 0, 0); ImageCopy($im,$img,$x,$y,0,0,ImageSX($img),ImageSY($img)); - $x1=$x+ImageSX($img)/2-ImageFontWidth(2)*strlen($label)/2; - $y1=$y+ImageSY($img); - ImageFilledRectangle($im,$x1-2, $y1,$x1+ImageFontWidth(2)*strlen($label), $y1+ImageFontHeight(2),$white); - ImageString($im, 2, $x1, $y1, $label,$black); + if($label!="") + { + $x1=$x+ImageSX($img)/2-ImageFontWidth(2)*strlen($label)/2; + $y1=$y+ImageSY($img); + ImageFilledRectangle($im,$x1-2, $y1,$x1+ImageFontWidth(2)*strlen($label), $y1+ImageFontHeight(2),$white); + ImageString($im, 2, $x1, $y1, $label,$black); + } if($status == 1) { |
