summaryrefslogtreecommitdiffstats
path: root/frontends/php/map.php
diff options
context:
space:
mode:
Diffstat (limited to 'frontends/php/map.php')
-rw-r--r--frontends/php/map.php11
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)
{