summaryrefslogtreecommitdiffstats
path: root/frontends/php/latest.php
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/php/latest.php
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/php/latest.php')
-rw-r--r--frontends/php/latest.php12
1 files changed, 6 insertions, 6 deletions
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"));