summaryrefslogtreecommitdiffstats
path: root/frontends/php/include/classes.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/classes.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/classes.inc.php')
-rw-r--r--frontends/php/include/classes.inc.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/frontends/php/include/classes.inc.php b/frontends/php/include/classes.inc.php
index a01470f6..094badca 100644
--- a/frontends/php/include/classes.inc.php
+++ b/frontends/php/include/classes.inc.php
@@ -54,7 +54,7 @@
function initColors()
{
// I should rename No Alpha to Alpha at some point to get rid of some confusion
- if(function_exists("ImageColorExactAlpha")&&function_exists("ImageCreateTrueColor"))
+ if(function_exists("ImageColorExactAlpha")&&function_exists("ImageCreateTrueColor")&&@imagecreatetruecolor(1,1))
{
$this->colors["Red"]= ImageColorExactAlpha($this->im,255,0,0,50);
$this->colors["Dark Red"]= ImageColorExactAlpha($this->im,150,0,0,50);
@@ -505,7 +505,7 @@
check_authorisation();
- if(function_exists("ImageColorExactAlpha")&&function_exists("ImageCreateTrueColor"))
+ if(function_exists("ImageColorExactAlpha")&&function_exists("ImageCreateTrueColor")&&@imagecreatetruecolor(1,1))
{
$this->im = ImageCreateTrueColor($this->sizeX+$this->shiftX+61,$this->sizeY+$this->shiftY+62+12*$this->num+8);
}