diff options
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"); } |