Code

Added additional check for ogroup activation
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 16 Apr 2008 12:33:00 +0000 (12:33 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 16 Apr 2008 12:33:00 +0000 (12:33 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10507 594d385d-05f5-0310-b6e9-bd551577e9d8

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

index 4dee273cb784a3e318f4252306ad529f859e20c8..3f42e703f1571b551013ba7def8bca81c5db1b47 100644 (file)
@@ -925,7 +925,7 @@ class workstartup extends plugin
     $this->handle_post_events("modify");
 
     /* Check if LDAP server has changed */
-    if (isset($this->attrs['gotoLdapServer']) && class_available("DaemonEvent")){
+    if ((isset($this->attrs['gotoLdapServer']) && class_available("DaemonEvent"))){
       $events = DaemonEvent::get_event_types(SYSTEM_EVENT | HIDDEN_EVENT);
       $o_queue = new gosaSupportDaemon();
       if(isset($events['TRIGGERED']['DaemonEvent_reload_ldap_config'])){
@@ -964,14 +964,15 @@ class workstartup extends plugin
 
         /* Trigger event for all member objects 
          */
-        foreach($macs as $mac){
-          $tmp = new $evt['CLASS_NAME']($this->config);
-          $tmp->set_type(TRIGGERED_EVENT);
-          $tmp->add_targets(array($mac));
-          if(!$o_queue->append($tmp)){
-            msg_dialog::display(_("Service infrastructure"),msgPool::siError($o_queue->get_error()),ERROR_DIALOG);
-          }
-        }
+print_a ($macs);
+#        foreach($macs as $mac){
+#          $tmp = new $evt['CLASS_NAME']($this->config);
+#          $tmp->set_type(TRIGGERED_EVENT);
+#          $tmp->add_targets(array($mac));
+#          if(!$o_queue->append($tmp)){
+#            msg_dialog::display(_("Service infrastructure"),msgPool::siError($o_queue->get_error()),ERROR_DIALOG);
+#          }
+#        }
       }
     }
   }