diff --git a/gosa-plugins/goto/admin/systems/goto/class_terminalGeneric.inc b/gosa-plugins/goto/admin/systems/goto/class_terminalGeneric.inc
index 9d17bb50b32cec25715e85f86870bea59d86b2a8..e26287a52dea5ac0665590366f32324b427f6983 100644 (file)
$action = $_POST['saction'];
/* Check if we have an DaemonEvent for this action */
- if(class_available("DaemonEvent_".$action)){
+ if(class_available("gosaSupportDaemon") && class_available("DaemonEvent_".$action)){
$events = DaemonEvent::get_event_types(SYSTEM_EVENT | HIDDEN_EVENT);
if(isset($events['TRIGGERED']["DaemonEvent_".$action])){
$evt = $events['TRIGGERED']["DaemonEvent_".$action];
$smarty->assign("inheritTimeServer",$this->inheritTimeServer);
/* Check if terminal is online */
- if (gosaSupportDaemon::ping($this->netConfigDNS->macAddress)){
+ if (class_available("gosaSupportDaemon") && gosaSupportDaemon::ping($this->netConfigDNS->macAddress)){
$smarty->assign("actions", array( "halt" => _("Switch off"),
"reboot" => _("Reboot"),
#"memcheck" => _("Memory test"),