summaryrefslogtreecommitdiffstats
path: root/ldap-site-mngmt/webinterface/computers/host_delete.php
diff options
context:
space:
mode:
Diffstat (limited to 'ldap-site-mngmt/webinterface/computers/host_delete.php')
-rw-r--r--ldap-site-mngmt/webinterface/computers/host_delete.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/ldap-site-mngmt/webinterface/computers/host_delete.php b/ldap-site-mngmt/webinterface/computers/host_delete.php
index 0470ed91..4d7a935b 100644
--- a/ldap-site-mngmt/webinterface/computers/host_delete.php
+++ b/ldap-site-mngmt/webinterface/computers/host_delete.php
@@ -3,6 +3,7 @@ include('../standard_header.inc.php');
$hostDN = $_POST['dn'];
$hostname = $_POST['name'];
+$dhcphlpcont = $_POST['dhcphlpcont'];
$hostDN = htmlentities($hostDN);
$hostname = htmlentities($hostname);
@@ -28,7 +29,9 @@ echo "
if ( $hostDN != ""){
if ( delete_host($hostDN) ){
- update_dhcpmtime();
+ if ( $dhcphlpcont != "" ){
+ update_dhcpmtime(array());
+ }
$mesg = "Rechner <b>".$hostname."</b> erfolgreich gel&ouml;scht!<br><br>";
}
else{