Code

Updated gosa-si dependencies
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 6 Sep 2010 07:05:38 +0000 (07:05 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 6 Sep 2010 07:05:38 +0000 (07:05 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6@19512 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/goto/admin/systems/goto/class_terminalGeneric.inc

index 9d17bb50b32cec25715e85f86870bea59d86b2a8..e26287a52dea5ac0665590366f32324b427f6983 100644 (file)
@@ -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"),