summaryrefslogtreecommitdiffstats
path: root/frontends/php/include/maps.inc.php
diff options
context:
space:
mode:
authorosmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2006-05-23 14:04:50 +0000
committerosmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2006-05-23 14:04:50 +0000
commit026ee8a0f799dc8faec5bf4ce591746d06795b23 (patch)
treefaf519f6f76d14bdd24155e4495f44c590850ce6 /frontends/php/include/maps.inc.php
parent90c8eec0c0e5e610b7ba83c1ba46e598f0d060e2 (diff)
downloadzabbix-026ee8a0f799dc8faec5bf4ce591746d06795b23.tar.gz
zabbix-026ee8a0f799dc8faec5bf4ce591746d06795b23.tar.xz
zabbix-026ee8a0f799dc8faec5bf4ce591746d06795b23.zip
- fixed image storing for oracle (Eugene)
git-svn-id: svn://svn.zabbix.com/trunk@2884 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/include/maps.inc.php')
-rw-r--r--frontends/php/include/maps.inc.php8
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)