From 259a6ddd9a2467e34657e921b2f18aa5d656dd6c Mon Sep 17 00:00:00 2001 From: hickert Date: Tue, 17 Jun 2008 12:13:34 +0000 Subject: [PATCH] Allow remove of systems without installed DNS/DHCP plugins, git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@11349 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../systems/admin/systems/class_systemManagement.inc | 6 +++--- gosa-plugins/systems/admin/systems/class_termDNS.inc | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/gosa-plugins/systems/admin/systems/class_systemManagement.inc b/gosa-plugins/systems/admin/systems/class_systemManagement.inc index 09bcfd24c..ba4055ea0 100644 --- a/gosa-plugins/systems/admin/systems/class_systemManagement.inc +++ b/gosa-plugins/systems/admin/systems/class_systemManagement.inc @@ -76,7 +76,7 @@ class systems extends plugin */ if(class_available("gosaSupportDaemon")){ $o = new gosaSupportDaemon(); - $this->si_active = $o->connect(); + $this->si_active = $o->connect() && class_available("DaemonEvent"); } } @@ -736,7 +736,7 @@ class systems extends plugin $this->dns = array(); $ids = $this->list_get_selected_items(); - if(count($ids)){ + if(count($ids) && class_available("DaemonEvent")){ $mac= array(); $ldap = $this->config->get_ldap_link(); @@ -787,7 +787,7 @@ class systems extends plugin } /* Insert scheduled events into queue */ - if($this->systab instanceof DaemonEvent){ + if(class_available("DaemonEvent") && $this->systab instanceof DaemonEvent){ $this->systab->save_object(); /* Save event diff --git a/gosa-plugins/systems/admin/systems/class_termDNS.inc b/gosa-plugins/systems/admin/systems/class_termDNS.inc index b954e75ef..b03088a1b 100644 --- a/gosa-plugins/systems/admin/systems/class_termDNS.inc +++ b/gosa-plugins/systems/admin/systems/class_termDNS.inc @@ -459,7 +459,7 @@ class termDNS extends plugin function remove_from_parent() { - if($this->initially_was_account){ + if($this->DNS_is_account){ $ldap = $this->config->get_ldap_link(); -- 2.30.2