Code

Updated server services
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 23 Jul 2008 08:08:49 +0000 (08:08 +0000)
committerhickert <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

gosa-plugins/systems/admin/systems/class_serverService.inc

index 3ce35118cc1d85df0dcc0b6cb3cc71fb45bdb968..da80ccb8f23525ed2be53a2a5b97e6fa4b881304 100644 (file)
@@ -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);
           }