summaryrefslogtreecommitdiffstats
path: root/frontends/php/hosts.php
diff options
context:
space:
mode:
Diffstat (limited to 'frontends/php/hosts.php')
-rw-r--r--frontends/php/hosts.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/frontends/php/hosts.php b/frontends/php/hosts.php
index d7d08f4d..673c84f4 100644
--- a/frontends/php/hosts.php
+++ b/frontends/php/hosts.php
@@ -74,7 +74,12 @@
}
if($_GET["register"]=="delete")
{
+ $host-get_host_by_hostid($_GET["hostid"]);
$result=delete_host($_GET["hostid"]);
+ if($result)
+ {
+ add_audit(AUDIT_ACTION_DELETE,AUDIT_RESOURCE_HOST,"Host [".addslashes($host["name"])."]");
+ }
show_messages($result, S_HOST_DELETED, S_CANNOT_DELETE_HOST);
unset($_GET["hostid"]);
}