From: hickert Date: Wed, 17 Jan 2007 08:43:48 +0000 (+0000) Subject: Fixed dns zone creation , if server is new X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=1da98b825d9305db6995b872c2a8e1806e947887;p=gosa.git Fixed dns zone creation , if server is new git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@5579 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/admin/systems/class_servDNS.inc b/plugins/admin/systems/class_servDNS.inc index c74c27fd3..793acb21d 100644 --- a/plugins/admin/systems/class_servDNS.inc +++ b/plugins/admin/systems/class_servDNS.inc @@ -280,7 +280,12 @@ class servdns extends goService /* Get differences */ - $tmp = getDNSZoneEntriesDiff($this->config,$this->Zones,$this->orig_dn); + $old_dn = $this->orig_dn; + if($old_dn == "new"){ + $old_dn = $this->dn; + } + + $tmp = getDNSZoneEntriesDiff($this->config,$this->Zones,$old_dn); /* Updated zone entries if reverser or forward name has changed * Must be done before moving entries, else the given dn is invalid