summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: d6bec26)
raw | patch | inline | side by side (parent: d6bec26)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 11 Mar 2008 10:06:01 +0000 (10:06 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 11 Mar 2008 10:06:01 +0000 (10:06 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@9662 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-plugins/goto/admin/systems/goto/class_workstationGeneric.inc | patch | blob | history |
diff --git a/gosa-plugins/goto/admin/systems/goto/class_workstationGeneric.inc b/gosa-plugins/goto/admin/systems/goto/class_workstationGeneric.inc
index 27c03bbb1599c3e7867269017b49ec618945ade8..4c6b13995e771512bf2646ef37978a2076e03c2d 100644 (file)
$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;
+ }
}
}