diff options
author | osmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2006-10-27 14:11:35 +0000 |
---|---|---|
committer | osmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2006-10-27 14:11:35 +0000 |
commit | 48dcc49d6e6c1074303b5bc7831045b43799c080 (patch) | |
tree | 157c501aac5882c79725b208ffd3838e33c259f7 | |
parent | 9c4a763c083baa2567ce1cd02b8446f5899177dc (diff) | |
download | zabbix-48dcc49d6e6c1074303b5bc7831045b43799c080.tar.gz zabbix-48dcc49d6e6c1074303b5bc7831045b43799c080.tar.xz zabbix-48dcc49d6e6c1074303b5bc7831045b43799c080.zip |
minor fix
git-svn-id: svn://svn.zabbix.com/trunk@3390 97f52cf1-0a1b-0410-bd0e-c28be96e8082
-rw-r--r-- | frontends/php/include/hosts.inc.php | 2 | ||||
-rw-r--r-- | frontends/php/include/items.inc.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/frontends/php/include/hosts.inc.php b/frontends/php/include/hosts.inc.php index 834035cc..f6ac11c4 100644 --- a/frontends/php/include/hosts.inc.php +++ b/frontends/php/include/hosts.inc.php @@ -375,7 +375,7 @@ require_once "include/items.inc.php"; function get_hosts_by_templateid($templateid) { - return DBselect("select * from hosts where templateid=$templateid"); + return DBselect("select h.* from hosts h, hosts_templates ht where h.hostid=ht.hostid and ht.templateid=$templateid"); } # Update Host status diff --git a/frontends/php/include/items.inc.php b/frontends/php/include/items.inc.php index 271061f5..cf7ae987 100644 --- a/frontends/php/include/items.inc.php +++ b/frontends/php/include/items.inc.php @@ -247,7 +247,7 @@ // add items to child hosts - $db_hosts = DBselect("select hostid from hosts where templateid=".$host["hostid"]); + $db_hosts = get_hosts_by_templateid($host["hostid"]); while($db_host = DBfetch($db_hosts)) { // recursion |