diff options
author | hugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2004-01-11 08:36:56 +0000 |
---|---|---|
committer | hugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2004-01-11 08:36:56 +0000 |
commit | 06ed4e03676ca8087cc40ca3d018b96a055a3b96 (patch) | |
tree | 488e6036357cc4554bf2f266482f1aa04571e81d /frontends/php/map.php | |
parent | 8669392ca47e578cb9a00974224c6a4e18cc33e0 (diff) | |
download | zabbix-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/map.php')
-rw-r--r-- | frontends/php/map.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/frontends/php/map.php b/frontends/php/map.php index 4d60c7a6..56e60937 100644 --- a/frontends/php/map.php +++ b/frontends/php/map.php @@ -40,7 +40,7 @@ check_authorisation(); - if(function_exists("imagecreatetruecolor")) + if(function_exists("imagecreatetruecolor")&&@imagecreatetruecolor(1,1)) { $im = imagecreatetruecolor($width,$height); } @@ -135,7 +135,7 @@ $x2=DBget_field($result1,0,0); $y2=DBget_field($result1,0,1); - if(function_exists("imagecreatetruecolor")) + if(function_exists("imagecreatetruecolor")&&@imagecreatetruecolor(1,1)) { $size=48/2; } @@ -203,7 +203,7 @@ if(@gettype($icons["$icon"])!="resource") { - if(function_exists("imagecreatetruecolor")) + if(function_exists("imagecreatetruecolor")&&@imagecreatetruecolor(1,1)) { $icons[$icon]=ImageCreateFromPNG("images/sysmaps/$icon.png"); } |