diff options
| author | hugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2003-08-03 09:48:47 +0000 |
|---|---|---|
| committer | hugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2003-08-03 09:48:47 +0000 |
| commit | 9dc07cf7ea22ef948a79f93646ba538a06570e48 (patch) | |
| tree | 9bdfe86a84c6fff9bf962be5da7f59b3828c2a86 /frontends/php/include/classes.inc.php | |
| parent | 6822f3a55614b2c2ed10479e63f6c39526b08708 (diff) | |
| download | zabbix-9dc07cf7ea22ef948a79f93646ba538a06570e48.tar.gz zabbix-9dc07cf7ea22ef948a79f93646ba538a06570e48.tar.xz zabbix-9dc07cf7ea22ef948a79f93646ba538a06570e48.zip | |
Fixes for class Graph (Alexei)
git-svn-id: svn://svn.zabbix.com/trunk@883 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/include/classes.inc.php')
| -rw-r--r-- | frontends/php/include/classes.inc.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/frontends/php/include/classes.inc.php b/frontends/php/include/classes.inc.php index de273016..16e0f573 100644 --- a/frontends/php/include/classes.inc.php +++ b/frontends/php/include/classes.inc.php @@ -302,8 +302,8 @@ $this->im = imagecreate($this->sizeX+$this->shiftX+61,$this->sizeY+2*$this->shiftY+40); - Header( "Content-type: text/html"); -// Header( "Content-type: image/png"); +// Header( "Content-type: text/html"); + Header( "Content-type: image/png"); Header( "Expires: Mon, 17 Aug 1998 12:51:50 GMT"); check_authorisation(); @@ -344,12 +344,12 @@ { for($i=0;$i<900;$i++) { - if($this->count[$item][$i]>0) + if(isset($this->count[$item][$i])&&($this->count[$item][$i]>0)) { // for($j=$i-1;($j>=0)&&($j>$i-10);$j--) for($j=$i-1;$j>=0;$j--) { - if($this->count[$item][$j]>0) + if(isset($this->count[$item][$j])&&($this->count[$item][$j]>0)) { $x1=$this->sizeX*($i-$minX)/($maxX-$minX); $y1=$this->sizeY*($this->avg[$item][$i]-$minY)/($maxY-$minY); |
