summaryrefslogtreecommitdiffstats
path: root/frontends
diff options
context:
space:
mode:
authorosmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2006-11-15 09:48:37 +0000
committerosmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2006-11-15 09:48:37 +0000
commit1a905d3eb218ca22dcd24f7121ad0c19ef6e8c90 (patch)
tree1a9834593d4a01b9f63f1c1c96ec1501ddb61c39 /frontends
parent8fcbf55a381b1a209266981aebff5f5a53d39e83 (diff)
downloadzabbix-1a905d3eb218ca22dcd24f7121ad0c19ef6e8c90.tar.gz
zabbix-1a905d3eb218ca22dcd24f7121ad0c19ef6e8c90.tar.xz
zabbix-1a905d3eb218ca22dcd24f7121ad0c19ef6e8c90.zip
- fixed undefined vars
git-svn-id: svn://svn.zabbix.com/trunk@3483 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends')
-rw-r--r--frontends/php/include/forms.inc.php6
-rw-r--r--frontends/php/latest.php12
2 files changed, 9 insertions, 9 deletions
diff --git a/frontends/php/include/forms.inc.php b/frontends/php/include/forms.inc.php
index 339a89a1..83d465e6 100644
--- a/frontends/php/include/forms.inc.php
+++ b/frontends/php/include/forms.inc.php
@@ -777,10 +777,10 @@
$arr_of_dellays = explode(";",$db_delay_flex);
foreach($arr_of_dellays as $one_db_delay)
{
- @list($one_delay,$one_time_period) = explode("/",$one_db_delay);
- if(!isset($one_delay) || !isset($one_time_period)) continue;
+ $arr_of_delay = explode("/",$one_db_delay);
+ if(!isset($arr_of_delay[0]) || !isset($arr_of_delay[1])) continue;
- array_push($delay_flex,array("delay"=>$one_delay,"period"=>$one_time_period));
+ array_push($delay_flex,array("delay"=>$arr_of_delay[0],"period"=>$arr_of_delay[1]));
}
}
diff --git a/frontends/php/latest.php b/frontends/php/latest.php
index 432e3842..919b4c46 100644
--- a/frontends/php/latest.php
+++ b/frontends/php/latest.php
@@ -95,9 +95,9 @@ include_once "include/page_header.php";
$_REQUEST["applications"] = get_request("applications",get_profile("web.latest.applications",array()),PROFILE_TYPE_ARRAY);
- if(isset($_REQUEST["open"]) && isset($_REQUEST["applicationid"]))
+ if(isset($_REQUEST["open"]))
{
- if($_REQUEST["applicationid"] == -1)
+ if(!isset($_REQUEST["applicationid"]))
{
$_REQUEST["applications"] = array();
$show_all_apps = 1;
@@ -107,9 +107,9 @@ include_once "include/page_header.php";
array_push($_REQUEST["applications"],$_REQUEST["applicationid"]);
}
- } elseif(isset($_REQUEST["close"]) && isset($_REQUEST["applicationid"]))
+ } elseif(isset($_REQUEST["close"]))
{
- if($_REQUEST["applicationid"] == -1)
+ if(!isset($_REQUEST["applicationid"]))
{
$_REQUEST["applications"] = array();
}
@@ -189,12 +189,12 @@ include_once "include/page_header.php";
<?php
if(isset($show_all_apps))
$link = new CLink(new CImg("images/general/opened.gif"),
- "latest.php?close=1&applicationid=-1".
+ "latest.php?close=1".
url_param("groupid").url_param("hostid").url_param("applications").
url_param("select"));
else
$link = new CLink(new CImg("images/general/closed.gif"),
- "latest.php?open=1&applicationid=-1".
+ "latest.php?open=1".
url_param("groupid").url_param("hostid").url_param("applications").
url_param("select"));