diff options
Diffstat (limited to 'frontends/php/map.php')
| -rw-r--r-- | frontends/php/map.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/frontends/php/map.php b/frontends/php/map.php index 62eb9858..56f74d69 100644 --- a/frontends/php/map.php +++ b/frontends/php/map.php @@ -89,9 +89,9 @@ $db_images = DBselect("select image from images". " where imagetype=2 and name=".zbx_dbstr($background)); - if(DBnum_rows($db_images)==1) + $db_image = DBfetch($db_images); + if($db_image) { - $db_image = DBfetch($db_images); $back = ImageCreateFromString($db_image["image"]); ImageCopy($im,$back,0,0,0,0,imagesx($back),imagesy($back)); } |
