summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: b3be11b)
raw | patch | inline | side by side (parent: b3be11b)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 9 May 2008 13:07:54 +0000 (13:07 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 9 May 2008 13:07:54 +0000 (13:07 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10869 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-plugins/dns/admin/systems/services/dns/class_servDNS.inc | patch | blob | history |
diff --git a/gosa-plugins/dns/admin/systems/services/dns/class_servDNS.inc b/gosa-plugins/dns/admin/systems/services/dns/class_servDNS.inc
index d2779828baf2f93336700ad7d20bd8e13a9e1d8b..08b15e808ae396d6fdef6e679b6d5a57e33838e1 100644 (file)
/* Delete specified zone
*/
- function RemoveZone($id)
+ function RemoveZone($id,$force = FALSE)
{
$zones = $this->getUsedZoneNames();
/* There are still entries using this configuration
* Abort deletion
*/
- if(count($used)){
+ if(count($used) && !$force){
$i = 2;
$str ="";
foreach($used as $dn){
$bool = true;
$this->is_account = FALSE;
foreach($this->Zones as $key => $zone){
- $bool= $bool & $this->RemoveZone($key);
+ $bool= $bool & $this->RemoveZone($key,TRUE);
}
-
if($bool){
$this->save();
}