From d9f1895952e9b02c1b0c398cc5dc09b88178e603 Mon Sep 17 00:00:00 2001 From: hickert Date: Tue, 16 Jan 2007 08:08:24 +0000 Subject: [PATCH] Fixed remove from parent for dns extension git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@5573 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/systems/class_servDNS.inc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/admin/systems/class_servDNS.inc b/plugins/admin/systems/class_servDNS.inc index b433a734c..c63fd9b1c 100644 --- a/plugins/admin/systems/class_servDNS.inc +++ b/plugins/admin/systems/class_servDNS.inc @@ -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); -- 2.30.2