summaryrefslogtreecommitdiffstats
path: root/frontends/php/include/hosts.inc.php
diff options
context:
space:
mode:
Diffstat (limited to 'frontends/php/include/hosts.inc.php')
-rw-r--r--frontends/php/include/hosts.inc.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/frontends/php/include/hosts.inc.php b/frontends/php/include/hosts.inc.php
index d3ce51a8..87f67db6 100644
--- a/frontends/php/include/hosts.inc.php
+++ b/frontends/php/include/hosts.inc.php
@@ -67,7 +67,10 @@
add_templates_to_host($hostid,$host_templateid);
sync_host_with_templates($hostid);
}
- update_host_groups($hostid,$groups);
+ if($groups != "")
+ {
+ update_host_groups($hostid,$groups);
+ }
if($newgroup != "")
{
add_group_to_host($hostid,$newgroup);