summaryrefslogtreecommitdiffstats
path: root/frontends/php/include/items.inc.php
diff options
context:
space:
mode:
Diffstat (limited to 'frontends/php/include/items.inc.php')
-rw-r--r--frontends/php/include/items.inc.php2
1 files changed, 1 insertions, 1 deletions
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