From 06ed4e03676ca8087cc40ca3d018b96a055a3b96 Mon Sep 17 00:00:00 2001 From: hugetoad Date: Sun, 11 Jan 2004 08:36:56 +0000 Subject: Better check for function imagecreatetruecolor() git-svn-id: svn://svn.zabbix.com/trunk@1167 97f52cf1-0a1b-0410-bd0e-c28be96e8082 --- frontends/php/sysmap.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'frontends/php/sysmap.php') 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\"$host_\""; } @@ -271,7 +271,7 @@ show_table2_h_delimiter(); echo "