Code

Updated system activation, respect event accessability
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 6 Sep 2010 06:43:40 +0000 (06:43 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 6 Sep 2010 06:43:40 +0000 (06:43 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6@19509 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/systems/admin/systems/class_servGeneric.inc

index 5ff6b3d65a72d10ce5fddf660b263e1388d88dd4..b2fcb6131ee403bf374ba07d77a51056e43cfd1b 100644 (file)
@@ -164,7 +164,7 @@ class servgeneric extends plugin
       $action = $_POST['saction'];
       
       /* Check if we have an DaemonEvent for this action */
-      if(class_available("DaemonEvent")){
+      if(class_available("gosaSupportDaemon") && class_available("DaemonEvent")){
         $events = DaemonEvent::get_event_types(SYSTEM_EVENT | HIDDEN_EVENT);
         if(isset($events['TRIGGERED']["DaemonEvent_".$action])){
           $evt = $events['TRIGGERED']["DaemonEvent_".$action];
@@ -426,7 +426,7 @@ class servgeneric extends plugin
     /* Optionally execute a command after we're done */
     $this->handle_post_events($mode,array("macAddress" => $this->netConfigDNS->macAddress,"ipHostNumber" => $this->netConfigDNS->ipHostNumber));
 
-    if ($activate){
+    if($activate && class_available("gosaSupportDaemon") && class_available("DaemonEvent")){
 
       /* Send installation activation 
        */