summaryrefslogtreecommitdiffstats
path: root/frontends/php/include/hosts.inc.php
diff options
context:
space:
mode:
authorosmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2007-08-02 12:23:31 +0000
committerosmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2007-08-02 12:23:31 +0000
commit78134fbc73c8f2f947722093fb1d625268a60552 (patch)
treeb84e3301b46e0a6054e8c2f55d34044050fa14b9 /frontends/php/include/hosts.inc.php
parent3e5c8f13f71b5297f5c6621b7156e381606f06ac (diff)
downloadzabbix-78134fbc73c8f2f947722093fb1d625268a60552.tar.gz
zabbix-78134fbc73c8f2f947722093fb1d625268a60552.tar.xz
zabbix-78134fbc73c8f2f947722093fb1d625268a60552.zip
- merged rev. 4501:4502 of branches/1.4.2 (Eugene)
[ - added undefined element message 'No **** defined' instead 'Premission deny' (Eugene) - fixed items,graphs,hostgroups deletion (Eugene) - fixed permisions for maps (Eugene) ] git-svn-id: svn://svn.zabbix.com/trunk@4505 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/include/hosts.inc.php')
-rw-r--r--frontends/php/include/hosts.inc.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/frontends/php/include/hosts.inc.php b/frontends/php/include/hosts.inc.php
index ed015f75..1edecfb4 100644
--- a/frontends/php/include/hosts.inc.php
+++ b/frontends/php/include/hosts.inc.php
@@ -408,8 +408,7 @@ require_once "include/items.inc.php";
$row2=DBfetch($result2);
if($row2["count"]==0)
{
- $sql="delete from groups where groupid=".$row["groupid"];
- DBexecute($sql);
+ delete_host_group($row["groupid"]);
}
}
}