From: cajus Date: Wed, 16 Apr 2008 12:33:00 +0000 (+0000) Subject: Added additional check for ogroup activation X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=6b1d9c69c958da65d57e2e9afdfd8d4ed5693429;p=gosa.git Added additional check for ogroup activation git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10507 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/goto/admin/systems/goto/class_workstationStartup.inc b/gosa-plugins/goto/admin/systems/goto/class_workstationStartup.inc index 4dee273cb..3f42e703f 100644 --- a/gosa-plugins/goto/admin/systems/goto/class_workstationStartup.inc +++ b/gosa-plugins/goto/admin/systems/goto/class_workstationStartup.inc @@ -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); +# } +# } } } }