From: hickert Date: Thu, 30 Mar 2006 11:39:15 +0000 (+0000) Subject: fixed minor bugs X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=56475383576a728ed9e8cc1859c513dbdb3439fa;p=gosa.git fixed minor bugs git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2933 594d385d-05f5-0310-b6e9-bd551577e9d8 --- 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){