From 31c4137c0b14743e9d3c62e14e67e1c96bd7c466 Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 6 Sep 2010 07:05:38 +0000 Subject: [PATCH] Updated gosa-si dependencies git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6@19512 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../goto/admin/systems/goto/class_terminalGeneric.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gosa-plugins/goto/admin/systems/goto/class_terminalGeneric.inc b/gosa-plugins/goto/admin/systems/goto/class_terminalGeneric.inc index 9d17bb50b..e26287a52 100644 --- a/gosa-plugins/goto/admin/systems/goto/class_terminalGeneric.inc +++ b/gosa-plugins/goto/admin/systems/goto/class_terminalGeneric.inc @@ -186,7 +186,7 @@ class termgeneric extends plugin $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]; @@ -241,7 +241,7 @@ class termgeneric extends plugin $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"), -- 2.30.2