summaryrefslogtreecommitdiffstats
path: root/frontends/php/include
diff options
context:
space:
mode:
authorhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2005-08-26 11:09:30 +0000
committerhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2005-08-26 11:09:30 +0000
commit53338d4d70ccb87b724bd3df293b8ce1b32fbb11 (patch)
tree99e40df0d051acc3221928af43cd7673a8008f15 /frontends/php/include
parente2128fb24527ba8f591e54633be0daf9a7636146 (diff)
downloadzabbix-53338d4d70ccb87b724bd3df293b8ce1b32fbb11.tar.gz
zabbix-53338d4d70ccb87b724bd3df293b8ce1b32fbb11.tar.xz
zabbix-53338d4d70ccb87b724bd3df293b8ce1b32fbb11.zip
- misc usability fixes for PHP interface (Alexei)
git-svn-id: svn://svn.zabbix.com/trunk@1997 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/include')
-rw-r--r--frontends/php/include/classes.inc.php3
-rw-r--r--frontends/php/include/forms.inc.php2
2 files changed, 3 insertions, 2 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)
{
diff --git a/frontends/php/include/forms.inc.php b/frontends/php/include/forms.inc.php
index 3ee9f2d7..a4624beb 100644
--- a/frontends/php/include/forms.inc.php
+++ b/frontends/php/include/forms.inc.php
@@ -317,7 +317,7 @@
$col=0;
show_table2_v_delimiter($col++);
- echo "<form method=\"get\" action=\"items.php\">";
+ echo "<form method=\"get\" action=\"items.php#form\">";
if(isset($_GET["itemid"]))
{
echo "<input class=\"biginput\" name=\"itemid\" type=hidden value=".$_GET["itemid"].">";