diff options
Diffstat (limited to 'frontends/php/include/maps.inc.php')
| -rw-r--r-- | frontends/php/include/maps.inc.php | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/frontends/php/include/maps.inc.php b/frontends/php/include/maps.inc.php index cb394fe8..831dbeab 100644 --- a/frontends/php/include/maps.inc.php +++ b/frontends/php/include/maps.inc.php @@ -238,13 +238,9 @@ else $icon = $element["icon"]; - $images = DBselect("select image from images where imagetype=1 and name=".zbx_dbstr($icon)); - if(!$images) return FALSE; - - $image = DBfetch($images); + $image = get_image_by_name($icon); if(!$image) return FALSE; - - return imagecreatefromstring($image["image"]); + return imagecreatefromstring($image['image']); } function get_info_by_selementid($selementid, &$out_info, &$out_color) |
