Code

Fixed stupid error
[gosa.git] / plugins / admin / applications / class_applicationManagement.inc
index 9df2492d1c16c1a278de64e7233f92f8222ec31a..e5f6dbfc6f11dd54d159ba8e225640597fce7c2d 100644 (file)
@@ -34,6 +34,16 @@ class applicationManagement extends plugin
   var $acl                      = "";
   var $enableReleaseManagement  = false;
 
+  function IsReleaseManagementActivated($config)
+  {
+    /* Check if we should enable the release selection */
+    $tmp = search_config($this->config->data,"faiManagement","CLASS");
+    if(!empty($tmp)){
+      return(true);
+    }
+    return(false);
+  }
+
   function applicationManagement ($config, $ui)
   {
     /* Save configuration for internal use */
@@ -48,9 +58,8 @@ class applicationManagement extends plugin
     /* Creat dialog object */
     $this->DivListApplication = new divListApplication($this->config,$this);
 
+    if($this->IsReleaseManagementActivated($this->config)){
     /* Check if we should enable the release selection */
-    $tmp = search_config($this->config->data,"faiManagement","CLASS");
-    if(!empty($tmp)){
       $this->enableReleaseManagement = true;
 
       /* Hide SubSearch checkbox */