summaryrefslogtreecommitdiffstats
path: root/frontends/php/include/classes.inc.php
diff options
context:
space:
mode:
Diffstat (limited to 'frontends/php/include/classes.inc.php')
-rw-r--r--frontends/php/include/classes.inc.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/frontends/php/include/classes.inc.php b/frontends/php/include/classes.inc.php
index 0ec17f8b..5c078c47 100644
--- a/frontends/php/include/classes.inc.php
+++ b/frontends/php/include/classes.inc.php
@@ -431,7 +431,7 @@
}
}
- if($maxY>0)
+ if(isset($maxY)&&($maxY>0))
{
$exp = floor(log10($maxY));
$mant = $maxY/pow(10,$exp);
@@ -500,6 +500,7 @@
$str=$str.$this->items[$i]["itemid"].",";
}
$str=substr($str,0,strlen($str)-1);
+ if($str=="") $str=-1;
if($this->period<=24*3600)
{