summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: de1ebaf)
raw | patch | inline | side by side (parent: de1ebaf)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 11 Mar 2008 10:05:40 +0000 (10:05 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 11 Mar 2008 10:05:40 +0000 (10:05 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@9661 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-plugins/systems/admin/systems/class_servGeneric.inc | patch | blob | history |
diff --git a/gosa-plugins/systems/admin/systems/class_servGeneric.inc b/gosa-plugins/systems/admin/systems/class_servGeneric.inc
index 9b2e16c0f2fa4762d4713e76afeceb161f8c9fca..5bf6e46ecc3f2e1a57a128790e1a6cb75d6b31db 100644 (file)
$this->netConfigDNS->set_acl_base($this->base);
/* 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;
+ }
}
}