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/exp_imp.php | |
| parent | 4126039bc0cad4231822bbd07fe9dda5301ab423 (diff) | |
- [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/exp_imp.php')
| -rw-r--r-- | frontends/php/exp_imp.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/frontends/php/exp_imp.php b/frontends/php/exp_imp.php index 19f7bcdc..48d17d60 100644 --- a/frontends/php/exp_imp.php +++ b/frontends/php/exp_imp.php @@ -235,7 +235,7 @@ include_once "include/page_header.php"; $db_els = DBselect($sql); while($el = DBfetch($db_els)) { - if($el['cnt'] != 1 || $el['hostid'] != $host['hostid']) continue; + if($el['cnt'] != 1 || (bccomp($el['hostid'] , $host['hostid']) != 0)) continue; $el_table->AddRow(array($el_type, $el['info'])); } } @@ -281,7 +281,7 @@ include_once "include/page_header.php"; while($row=DBfetch($result)) { $cmbGroups->AddItem($row["groupid"],$row["name"]); - if($row["groupid"] == $_REQUEST["groupid"]) $correct_host = 1; + if((bccomp($row["groupid"] , $_REQUEST["groupid"])==0)) $correct_host = 1; } if(!isset($correct_host)) { @@ -376,7 +376,7 @@ include_once "include/page_header.php"; $trigger_cnt = 0; $db_triggers = DBselect('select f.triggerid, i.hostid, count(distinct i.hostid) as cnt from functions f, items i '. ' where f.itemid=i.itemid group by f.triggerid, i.hostid'); - while($db_tr = DBfetch($db_triggers)) if($db_tr['cnt'] == 1 && $db_tr['hostid'] == $row['hostid']) $trigger_cnt++; + while($db_tr = DBfetch($db_triggers)) if($db_tr['cnt'] == 1 && (bccomp($db_tr['hostid'] , $row['hostid'])==0)) $trigger_cnt++; if($trigger_cnt > 0) { $trigger_cnt = array(new CCheckBox('triggers['.$row['hostid'].']', @@ -394,7 +394,7 @@ include_once "include/page_header.php"; $db_graphs = DBselect('select gi.graphid, i.hostid, count(distinct i.hostid) as cnt'. ' from graphs_items gi, items i '. ' where gi.itemid=i.itemid group by gi.graphid, i.hostid'); - while($db_tr = DBfetch($db_graphs)) if($db_tr['cnt'] == 1 && $db_tr['hostid'] == $row['hostid']) $graph_cnt++; + while($db_tr = DBfetch($db_graphs)) if($db_tr['cnt'] == 1 && (bccomp($db_tr['hostid'] , $row['hostid'])==0)) $graph_cnt++; if($graph_cnt > 0) { $graph_cnt = array(new CCheckBox('graphs['.$row['hostid'].']', |
