summaryrefslogtreecommitdiffstats
path: root/frontends/php/sysmap.php
diff options
context:
space:
mode:
authorhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2004-01-11 08:36:56 +0000
committerhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2004-01-11 08:36:56 +0000
commit06ed4e03676ca8087cc40ca3d018b96a055a3b96 (patch)
tree488e6036357cc4554bf2f266482f1aa04571e81d /frontends/php/sysmap.php
parent8669392ca47e578cb9a00974224c6a4e18cc33e0 (diff)
downloadzabbix-06ed4e03676ca8087cc40ca3d018b96a055a3b96.tar.gz
zabbix-06ed4e03676ca8087cc40ca3d018b96a055a3b96.tar.xz
zabbix-06ed4e03676ca8087cc40ca3d018b96a055a3b96.zip
Better check for function imagecreatetruecolor()
git-svn-id: svn://svn.zabbix.com/trunk@1167 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/sysmap.php')
-rw-r--r--frontends/php/sysmap.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/frontends/php/sysmap.php b/frontends/php/sysmap.php
index 0c7e77bf..60102b8e 100644
--- a/frontends/php/sysmap.php
+++ b/frontends/php/sysmap.php
@@ -95,7 +95,7 @@
$y_=DBget_field($result,$i,6);
$status_=DBget_field($result,$i,7);
- if(function_exists("imagecreatetruecolor"))
+ if(function_exists("imagecreatetruecolor")&&@imagecreatetruecolor(1,1))
{
$map=$map."\n<area shape=rect coords=$x_,$y_,".($x_+48).",".($y_+48)." href=\"sysmap.php?sysmapid=$sysmapid_&shostid=$shostid_#form\" alt=\"$host_\">";
}
@@ -271,7 +271,7 @@
show_table2_h_delimiter();
echo "<select class=\"biginput\" name=\"icon\" size=1>";
$icons=array();
- if(function_exists("imagecreatetruecolor"))
+ if(function_exists("imagecreatetruecolor")&&@imagecreatetruecolor(1,1))
{
$icons[0]="Server";
$icons[1]="Workstation";