From 56475383576a728ed9e8cc1859c513dbdb3439fa Mon Sep 17 00:00:00 2001 From: hickert Date: Thu, 30 Mar 2006 11:39:15 +0000 Subject: [PATCH] fixed minor bugs git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2933 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/systems/class_servDNS.inc | 2 +- plugins/admin/systems/class_termDNS.inc | 13 +++++++------ 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/plugins/admin/systems/class_servDNS.inc b/plugins/admin/systems/class_servDNS.inc index 7bc056a17..a54546ec8 100644 --- a/plugins/admin/systems/class_servDNS.inc +++ b/plugins/admin/systems/class_servDNS.inc @@ -271,7 +271,7 @@ class servdns extends plugin /* Get differences */ $tmp = getDNSZoneEntriesDiff($this->config,$this->Zones,$this->orig_dn); - + /* Updated zone entries if reverser or forward name has changed * Must be done before moving entries, else the given dn is invalid */ diff --git a/plugins/admin/systems/class_termDNS.inc b/plugins/admin/systems/class_termDNS.inc index c722bc59d..d543755b1 100644 --- a/plugins/admin/systems/class_termDNS.inc +++ b/plugins/admin/systems/class_termDNS.inc @@ -247,6 +247,7 @@ class termDNS extends plugin { $message= array(); + /* Check if ip must be given */ if(($this->IPisMust)||($this->DNS_is_account)){ @@ -372,18 +373,18 @@ class termDNS extends plugin $tmp = getDNSHostEntriesDiff($this->config,$this->OrigCn,$this->dnsEntry,$this->cn); } - /* Delete dns */ - foreach($tmp['del'] as $dn => $del){ - $ldap->cd($dn); - $ldap->rmdir_recursive($dn); - } - /* move follwoing entries */ foreach($tmp['move'] as $src => $dst){ $this->recursive_move($src,$dst); } + /* Delete dns */ + foreach($tmp['del'] as $dn => $del){ + $ldap->cd($dn); + $ldap->rmdir_recursive($dn); + } + /* Add || Update new DNS entries */ foreach($tmp['add'] as $dn => $attrs){ -- 2.30.2