From: hickert Date: Tue, 11 Mar 2008 10:06:01 +0000 (+0000) Subject: Updated check X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=4b84e1c29f57c346a82082a3f7bd8cb27d3b5be1;p=gosa.git Updated check git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@9662 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/goto/admin/systems/goto/class_workstationGeneric.inc b/gosa-plugins/goto/admin/systems/goto/class_workstationGeneric.inc index 27c03bbb1..4c6b13995 100644 --- a/gosa-plugins/goto/admin/systems/goto/class_workstationGeneric.inc +++ b/gosa-plugins/goto/admin/systems/goto/class_workstationGeneric.inc @@ -74,13 +74,15 @@ class workgeneric extends plugin $this->netConfigDNS = new termDNS($this->config,$this,$this->objectclasses); /* Check if this host is currently in installation process*/ - $o = new gosaSupportDaemon(); - $e_types = DaemonEvent::get_event_types(USER_EVENT | SYSTEM_EVENT | HIDDEN_EVENT); - $evts = $o->get_entries_by_mac(array($this->netConfigDNS->macAddress)); - foreach($evts as $evt){ - if(isset($e_types['QUEUED'][$evt['HEADERTAG']]) && $evt['status'] == "processing" && - $e_types['QUEUED'][$evt['HEADERTAG']] == "DaemonEvent_reinstall"){ - $this->currently_installing =TRUE; + if(class_available("gosaSupportDaemon") && class_available("DaemonEvent")){ + $o = new gosaSupportDaemon(); + $e_types = DaemonEvent::get_event_types(USER_EVENT | SYSTEM_EVENT | HIDDEN_EVENT); + $evts = $o->get_entries_by_mac(array($this->netConfigDNS->macAddress)); + foreach($evts as $evt){ + if(isset($e_types['QUEUED'][$evt['HEADERTAG']]) && $evt['status'] == "processing" && + $e_types['QUEUED'][$evt['HEADERTAG']] == "DaemonEvent_reinstall"){ + $this->currently_installing =TRUE; + } } }