summaryrefslogtreecommitdiffstats
path: root/frontends/php/popup.php
diff options
context:
space:
mode:
authorartem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2008-01-11 15:56:27 +0000
committerartem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2008-01-11 15:56:27 +0000
commit6d47f4278d61e0efde9cafab7d4dd5477f974891 (patch)
treebbc37342f8d1e95aa4fb63a68c738ba41926cb65 /frontends/php/popup.php
parent4126039bc0cad4231822bbd07fe9dda5301ab423 (diff)
downloadzabbix-6d47f4278d61e0efde9cafab7d4dd5477f974891.tar.gz
zabbix-6d47f4278d61e0efde9cafab7d4dd5477f974891.tar.xz
zabbix-6d47f4278d61e0efde9cafab7d4dd5477f974891.zip
- [ZBX-253] fixes problem in frontend with long int values (Artem)
git-svn-id: svn://svn.zabbix.com/trunk@5240 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/popup.php')
-rw-r--r--frontends/php/popup.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/frontends/php/popup.php b/frontends/php/popup.php
index 7e1cc2db..7213ca68 100644
--- a/frontends/php/popup.php
+++ b/frontends/php/popup.php
@@ -241,7 +241,7 @@ include_once "include/page_header.php";
if(isset($only_hostid))
{
- if(!isset($_REQUEST["hostid"]) || $_REQUEST["hostid"]!=$only_hostid) access_deny();
+ if(!isset($_REQUEST["hostid"]) || (bccomp($_REQUEST["hostid"], $only_hostid) != 0)) access_deny();
$hostid = $only_hostid;
}
else
@@ -258,7 +258,7 @@ include_once "include/page_header.php";
while($node_data = DBfetch($db_nodes))
{
$cmbNode->AddItem($node_data['nodeid'], $node_data['name']);
- if($nodeid == $node_data['nodeid']) $ok = true;
+ if((bccomp($nodeid , $node_data['nodeid']) == 0)) $ok = true;
}
$frmTitle->AddItem(array(SPACE,S_NODE,SPACE,$cmbNode));
}
@@ -282,7 +282,7 @@ include_once "include/page_header.php";
while($group = DBfetch($db_groups))
{
$cmbGroups->AddItem($group["groupid"],$group["name"]);
- if($groupid == $group["groupid"]) $ok = true;
+ if((bccomp($groupid , $group["groupid"]) == 0)) $ok = true;
}
$frmTitle->AddItem(array(S_GROUP,SPACE,$cmbGroups));
update_profile("web.popup.groupid",$groupid);
@@ -324,7 +324,7 @@ include_once "include/page_header.php";
while($host = DBfetch($db_hosts))
{
$cmbHosts->AddItem($host["hostid"],$host["host"]);
- if($hostid == $host["hostid"]) $ok = true;
+ if(bccomp($hostid , $host["hostid"]) == 0) $ok = true;
}
$frmTitle->AddItem(array(SPACE,S_HOST,SPACE,$cmbHosts));
update_profile("web.popup.hostid",$hostid);