Code

removed unused code
[gosa.git] / 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);
           }