From cf058c2ec2bff2902940ebcb7b753267ac7bea98 Mon Sep 17 00:00:00 2001 From: osmiy Date: Tue, 31 Oct 2006 07:42:04 +0000 Subject: - fixed recursion coping of elements from template git-svn-id: svn://svn.zabbix.com/trunk@3415 97f52cf1-0a1b-0410-bd0e-c28be96e8082 --- frontends/php/include/items.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'frontends/php/include/items.inc.php') 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 -- cgit