diff options
| author | osmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2007-08-13 08:22:32 +0000 |
|---|---|---|
| committer | osmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2007-08-13 08:22:32 +0000 |
| commit | abaab90a1c9d3367f1ef636557cfe8e661716749 (patch) | |
| tree | 3e266e5523a635c45a7e7ef6d4571e7323f26065 /frontends/php/include/maps.inc.php | |
| parent | 8901654871973b4267f106a97183001189189c82 (diff) | |
- merger rev. 4546:4547 of branches/1.4.j [developed data monitoring of multiple nodes]
git-svn-id: svn://svn.zabbix.com/trunk@4549 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/include/maps.inc.php')
| -rw-r--r-- | frontends/php/include/maps.inc.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/frontends/php/include/maps.inc.php b/frontends/php/include/maps.inc.php index 802a64b3..7ade4c92 100644 --- a/frontends/php/include/maps.inc.php +++ b/frontends/php/include/maps.inc.php @@ -84,8 +84,8 @@ $result = false; - if($db_result = DBselect("select * from sysmaps_elements where sysmapid=".$sysmapid. - " and ".DBid2nodeid('sysmapid')." not in (".get_accessible_nodes_by_user($USER_DETAILS,$perm,PERM_MODE_LT).")")) + if($db_result = DBselect('select * from sysmaps_elements where sysmapid='.$sysmapid. + ' and '.DBin_node('sysmapid', get_current_nodeid($perm)))) { $result = true; @@ -127,8 +127,8 @@ } else { - if(DBselect("select sysmapid from sysmaps where sysmapid=".$sysmapid. - " and ".DBid2nodeid('sysmapid')." not in (".get_accessible_nodes_by_user($USER_DETAILS,$perm,PERM_MODE_LT).")")) + if(DBselect('select sysmapid from sysmaps where sysmapid='.$sysmapid. + ' and '.DBin_node('sysmapid', get_current_nodeid($perm)))) $result = true; } return $result; |
