summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 15b254b)
raw | patch | inline | side by side (parent: 15b254b)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 23 Jul 2008 08:08:49 +0000 (08:08 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 23 Jul 2008 08:08:49 +0000 (08:08 +0000) |
-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
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@11763 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-plugins/systems/admin/systems/class_serverService.inc | patch | blob | history |
diff --git a/gosa-plugins/systems/admin/systems/class_serverService.inc b/gosa-plugins/systems/admin/systems/class_serverService.inc
index 3ce35118cc1d85df0dcc0b6cb3cc71fb45bdb968..da80ccb8f23525ed2be53a2a5b97e6fa4b881304 100644 (file)
$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);
}