summaryrefslogtreecommitdiffstats
path: root/frontends/php/maps.php
diff options
context:
space:
mode:
authorartem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2008-04-02 11:44:34 +0000
committerartem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2008-04-02 11:44:34 +0000
commit908fda905acd739d8d2376ffb33f7e5a63faf26c (patch)
tree55f16bf5ae2a95e9dbbf6266f17be864f2d2db32 /frontends/php/maps.php
parent82e68eabae069748d6691cab742f5fde436a56cb (diff)
downloadzabbix-908fda905acd739d8d2376ffb33f7e5a63faf26c.tar.gz
zabbix-908fda905acd739d8d2376ffb33f7e5a63faf26c.tar.xz
zabbix-908fda905acd739d8d2376ffb33f7e5a63faf26c.zip
- improvements in permissions (Artem)
git-svn-id: svn://svn.zabbix.com/trunk@5577 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/maps.php')
-rw-r--r--frontends/php/maps.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/frontends/php/maps.php b/frontends/php/maps.php
index 87d0fd46..c18aac7f 100644
--- a/frontends/php/maps.php
+++ b/frontends/php/maps.php
@@ -91,11 +91,11 @@ include_once "include/page_header.php";
$all_maps = array();
- $result = DBselect('select sysmapid,name from sysmaps '.
- ' where '.DBin_node('sysmapid').
- ' order by name');
- while($row=DBfetch($result))
- {
+ $result = DBselect('SELECT sysmapid,name '.
+ ' FROM sysmaps '.
+ ' WHERE '.DBin_node('sysmapid').
+ ' ORDER BY name');
+ while($row=DBfetch($result)){
if(!sysmap_accessiable($row["sysmapid"],PERM_READ_ONLY))
continue;