diff options
| author | artem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2008-01-11 15:56:27 +0000 |
|---|---|---|
| committer | artem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2008-01-11 15:56:27 +0000 |
| commit | 6d47f4278d61e0efde9cafab7d4dd5477f974891 (patch) | |
| tree | bbc37342f8d1e95aa4fb63a68c738ba41926cb65 /frontends/php/tr_status.php | |
| parent | 4126039bc0cad4231822bbd07fe9dda5301ab423 (diff) | |
| download | zabbix-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/tr_status.php')
| -rw-r--r-- | frontends/php/tr_status.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/frontends/php/tr_status.php b/frontends/php/tr_status.php index bb92e0ea..aef03bf9 100644 --- a/frontends/php/tr_status.php +++ b/frontends/php/tr_status.php @@ -219,7 +219,7 @@ include_once "include/page_header.php"; $result=DBselect($sql); $flag = false; while($row=DBfetch($result)){ - $flag |= $_REQUEST['hostid'] == $row['hostid']; + $flag |= (bccomp($_REQUEST['hostid'] , $row['hostid']) == 0); $cmbHosts->AddItem( $row['hostid'], get_node_name_by_elid($row['hostid']).$row['host'] @@ -485,7 +485,7 @@ include_once "include/page_header.php"; $host_nodeid = id2nodeid($row['hostid']); foreach($scripts_by_hosts[$row['hostid']] as $id => $script){ $script_nodeid = id2nodeid($script['scriptid']); - if( $host_nodeid == $script_nodeid ) + if( (bccomp($host_nodeid ,$script_nodeid ) == 0)) $menus.= "['".$script['name']."',\"javascript: openWinCentered('scripts_exec.php?execute=1&hostid=".$row['hostid']."&scriptid=".$script['scriptid']."','".S_TOOLS."',760,540,'titlebar=no, resizable=yes, scrollbars=yes, dialog=no');\", null,{'outer' : ['pum_o_item'],'inner' : ['pum_i_item']}],"; } |
