Code

Fixed remove from parent for dns extension
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 16 Jan 2007 08:08:24 +0000 (08:08 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 16 Jan 2007 08:08:24 +0000 (08:08 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@5573 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/systems/class_servDNS.inc

index b433a734c8ab8e212ffb23f086cc27ebcc66b2d6..c63fd9b1c947872ad51b66c2d07da7cc8d663185 100644 (file)
@@ -234,7 +234,9 @@ class servdns extends plugin
 
     }else{
       unset($this->Zones[$id]);
+      return(true);
     }
+    return(false);
   } 
 
 
@@ -258,7 +260,7 @@ class servdns extends plugin
    */
   function remove_from_parent()
   {
-    if($this->initially_was_account){
+    if($this->DNSinitially_was_account){
       $bool = true;
       foreach($this->Zones as $key => $zone){
         $bool= $bool & $this->RemoveZone($key);