summaryrefslogtreecommitdiffstats
path: root/frontends/php/latest.php
diff options
context:
space:
mode:
authorartem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2008-01-16 14:28:28 +0000
committerartem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2008-01-16 14:28:28 +0000
commit819114c84816786fa5bd16c933e0ea8d6d09f9d9 (patch)
tree6f5188b3404ffafd72c5aaee61386c285f692771 /frontends/php/latest.php
parent32e5c61ed67fadf2cf7670a1f5bfa55bf4831c9c (diff)
downloadzabbix-819114c84816786fa5bd16c933e0ea8d6d09f9d9.tar.gz
zabbix-819114c84816786fa5bd16c933e0ea8d6d09f9d9.tar.xz
zabbix-819114c84816786fa5bd16c933e0ea8d6d09f9d9.zip
- [ZBX-253] fixes problem in frontend with long int values (Artem)
git-svn-id: svn://svn.zabbix.com/trunk@5259 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/latest.php')
-rw-r--r--frontends/php/latest.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/frontends/php/latest.php b/frontends/php/latest.php
index a6f7a68e..0fc93758 100644
--- a/frontends/php/latest.php
+++ b/frontends/php/latest.php
@@ -68,7 +68,7 @@ include_once "include/page_header.php";
$_REQUEST["applications"] = array();
$show_all_apps = 1;
}
- else if(!in_array($_REQUEST["applicationid"],$_REQUEST["applications"])){
+ else if(!uint_in_array($_REQUEST["applicationid"],$_REQUEST["applications"])){
array_push($_REQUEST["applications"],$_REQUEST["applicationid"]);
}
@@ -219,7 +219,7 @@ include_once "include/page_header.php";
if( '' != $_REQUEST["select"] && !stristr($description, $_REQUEST["select"]) ) continue;
++$item_cnt;
- if(!in_array($db_app["applicationid"],$_REQUEST["applications"]) && !isset($show_all_apps)) continue;
+ if(!uint_in_array($db_app["applicationid"],$_REQUEST["applications"]) && !isset($show_all_apps)) continue;
if(isset($db_item["lastclock"]))
$lastclock=date(S_DATE_FORMAT_YMDHMS,$db_item["lastclock"]);
@@ -260,7 +260,7 @@ include_once "include/page_header.php";
}
if($item_cnt > 0){
- if(in_array($db_app["applicationid"],$_REQUEST["applications"]) || isset($show_all_apps)){
+ if(uint_in_array($db_app["applicationid"],$_REQUEST["applications"]) || isset($show_all_apps)){
$link = new CLink(new CImg("images/general/opened.gif"),
"?close=1&applicationid=".$db_app["applicationid"].
url_param("groupid").url_param("hostid").url_param("applications").
@@ -327,7 +327,7 @@ include_once "include/page_header.php";
if( '' != $_REQUEST["select"] && !stristr($description, $_REQUEST["select"]) ) continue;
++$item_cnt;
- if(!in_array(0,$_REQUEST["applications"]) && $any_app_exist && !isset($show_all_apps)) continue;
+ if(!uint_in_array(0,$_REQUEST["applications"]) && $any_app_exist && !isset($show_all_apps)) continue;
if(isset($db_item["lastclock"]))
$lastclock=zbx_date2str(S_DATE_FORMAT_YMDHMS,$db_item["lastclock"]);
@@ -373,7 +373,7 @@ include_once "include/page_header.php";
if($item_cnt > 0){
if($any_app_exist){
- if(in_array(0,$_REQUEST["applications"]) || isset($show_all_apps)){
+ if(uint_in_array(0,$_REQUEST["applications"]) || isset($show_all_apps)){
$link = new CLink(new CImg("images/general/opened.gif"),
"?close=1&applicationid=0".
url_param("groupid").url_param("hostid").url_param("applications").