diff options
Diffstat (limited to 'frontends/php/hosts.php')
| -rw-r--r-- | frontends/php/hosts.php | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/frontends/php/hosts.php b/frontends/php/hosts.php index 59484d54..d14f46c3 100644 --- a/frontends/php/hosts.php +++ b/frontends/php/hosts.php @@ -287,10 +287,7 @@ include_once 'include/page_header.php'; $db_host['host'],$db_host['port'],$db_host['status'],$useip,$db_host['dns'], $db_host['ip'],$db_host['proxy_hostid'],$db_host['templates'],$_REQUEST['newgroup'],$db_host['groups']); - $msg_ok = S_HOST_UPDATED; - $msg_fail = S_CANNOT_UPDATE_HOST; - $audit_action = AUDIT_ACTION_UPDATE; - + if($update && isset($visible['useprofile'])){ $host_profile=DBfetch(DBselect('SELECT * FROM hosts_profiles WHERE hostid='.$hostid)); @@ -314,6 +311,10 @@ include_once 'include/page_header.php'; } $result = DBend(); + + $msg_ok = S_HOSTS.SPACE.S_UPDATED; + $msg_fail = S_CANNOT_UPDATE.SPACE.S_HOSTS; + $audit_action = AUDIT_ACTION_UPDATE; show_messages($result, $msg_ok, $msg_fail); if($result){ |
