From 53338d4d70ccb87b724bd3df293b8ce1b32fbb11 Mon Sep 17 00:00:00 2001 From: hugetoad Date: Fri, 26 Aug 2005 11:09:30 +0000 Subject: - misc usability fixes for PHP interface (Alexei) git-svn-id: svn://svn.zabbix.com/trunk@1997 97f52cf1-0a1b-0410-bd0e-c28be96e8082 --- frontends/php/include/classes.inc.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'frontends/php/include/classes.inc.php') 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) { -- cgit