summaryrefslogtreecommitdiffstats
path: root/frontends/php/chart.php
diff options
context:
space:
mode:
authorhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2003-07-29 18:50:06 +0000
committerhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2003-07-29 18:50:06 +0000
commitde5e8a8c0bc2ca4699f5aebb7a2ee9fae3935679 (patch)
tree0868a7f26af4c204cd2fe316b2c6fb9e50b764fa /frontends/php/chart.php
parent13a98208337b17b13391951eddd61cc1f50df8c5 (diff)
downloadzabbix-de5e8a8c0bc2ca4699f5aebb7a2ee9fae3935679.tar.gz
zabbix-de5e8a8c0bc2ca4699f5aebb7a2ee9fae3935679.tar.xz
zabbix-de5e8a8c0bc2ca4699f5aebb7a2ee9fae3935679.zip
Small fix.
git-svn-id: svn://svn.zabbix.com/trunk@871 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/chart.php')
-rw-r--r--frontends/php/chart.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/frontends/php/chart.php b/frontends/php/chart.php
index a9cf1467..ff6e6d32 100644
--- a/frontends/php/chart.php
+++ b/frontends/php/chart.php
@@ -498,8 +498,8 @@
$maxX=900;
$minX=0;
- $maxY=max($max);
- $minY=min($min);
+ $maxY=@iif(count($max)>0,max($max),0);
+ $minY=@iif(count($min)>0,min($min),0);
$minY=0;
// $maxY=30000;
# echo "MIN/MAX:",$minX," - ",$maxX," - ",$minY," - ",$maxY,"<Br>";