From 026ee8a0f799dc8faec5bf4ce591746d06795b23 Mon Sep 17 00:00:00 2001 From: osmiy Date: Tue, 23 May 2006 14:04:50 +0000 Subject: - fixed image storing for oracle (Eugene) git-svn-id: svn://svn.zabbix.com/trunk@2884 97f52cf1-0a1b-0410-bd0e-c28be96e8082 --- frontends/php/include/maps.inc.php | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'frontends/php/include/maps.inc.php') 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) -- cgit