From 082169fac01d2b7266db520514fc199e1b53be87 Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 23 Jul 2008 08:08:49 +0000 Subject: [PATCH] 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 --- gosa-plugins/systems/admin/systems/class_serverService.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- 2.30.2