From: hickert Date: Wed, 23 Jul 2008 08:08:49 +0000 (+0000) Subject: Updated server services X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=082169fac01d2b7266db520514fc199e1b53be87;p=gosa.git Updated server services -Ensure that we only start/stop/restart services that have a StatusFlag attribute defined. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@11763 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/systems/admin/systems/class_serverService.inc b/gosa-plugins/systems/admin/systems/class_serverService.inc index 3ce35118c..da80ccb8f 100644 --- a/gosa-plugins/systems/admin/systems/class_serverService.inc +++ b/gosa-plugins/systems/admin/systems/class_serverService.inc @@ -380,7 +380,7 @@ class ServerService extends plugin $tmp = $this->plugins[$name]->getListEntry(); /* Check if given action is allowed for this service */ - if($tmp[$map[$action]]){ + if($tmp[$map[$action]] && !empty($this->plugins[$name]->StatusFlag)){ if($this->plugins[$name]->initially_was_account && $this->plugins[$name]->is_account){ $this->plugins[$name]->setStatus($action); }