Code

Some style changes
[gosa.git] / plugins / admin / groups / class_groupApplication.inc
index cffa3ba86785e6a0f62c66721d42f78166daba8e..c899f0bff70e22847d848ea9c76660fc57f26132 100644 (file)
@@ -273,8 +273,7 @@ class appgroup extends plugin
        plugin::execute();
 
     if((isset($_GET['act']))&&($_GET['act']=="depopen")){
-      print $_GET['id'];
-      $dep = base64_decode($_GET['id']);  
+      $dep = base64_decode($_GET['depid']);  
       if(isset($this->config->idepartments[$dep])){
         $this->curbase =$dep;
       }
@@ -378,10 +377,10 @@ class appgroup extends plugin
           }
         }
       }
-      $only_once = true; 
-      if((preg_match("/EdiApp_/",$name))&&($only_once)){
+      
+      if((preg_match("/EdiApp_/",$name))&&(!$only_once)){
 
-        $only_once = false;
+        $only_once = true;
         $appname = $value;
         $appname = preg_replace("/EdiApp_/","",$name);  
         $appname = preg_replace("/_.*$/","",$appname);
@@ -573,7 +572,7 @@ class appgroup extends plugin
       for($i = 0 ; $i < ($cnt -1 ) ; $i++){
         $bbk .= $tmp[$i];
       }
-      $div2 ->AddEntry(array(array("string"=>sprintf($linkopen,$bbk,"..")),array("string"=>"&nbsp;","attach"=>"style='border-right:0px;'")));
+      $div2 ->AddEntry(array(array("string"=>sprintf($linkopen,base64_encode($bbk),"..")),array("string"=>"&nbsp;","attach"=>"style='border-right:0px;'")));
     }
 
     $this->GetSubdirs($this->curCatDir);