summaryrefslogtreecommitdiffstats
path: root/frontends/php/include/config.inc.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/include/config.inc.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/include/config.inc.php')
-rw-r--r--frontends/php/include/config.inc.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/frontends/php/include/config.inc.php b/frontends/php/include/config.inc.php
index 5d9024f0..2f23c18d 100644
--- a/frontends/php/include/config.inc.php
+++ b/frontends/php/include/config.inc.php
@@ -4943,7 +4943,7 @@ where h.hostid=i.hostid and i.itemid=f.itemid and f.triggerid=$triggerid";
if( ($status==0)||($status==2))
{
- 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=\"tr_status.php?hostid=$hostid&noactions=true&onlytrue=true&compact=true\" alt=\"$host\">";
}