Code

Closes #217
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 4 Dec 2007 12:58:55 +0000 (12:58 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 4 Dec 2007 12:58:55 +0000 (12:58 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@7999 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/personal/environment/class_environment.inc

index f209ef1a08ffc229f03069c70ce0d16d3bc7f5df..98a7cb0d941f62f762205ef84d89610c1398cd05 100644 (file)
@@ -647,12 +647,20 @@ class environment extends plugin
         $hide = true;    
       }
 
+      /* Skip apssword only entries */
+      if( empty($this->gotoShares[$key]['server']) && 
+          empty($this->gotoShares[$key]['name']) &&
+          empty($this->gotoShares[$key]['mountPoint']) &&
+          empty($this->gotoShares[$key]['Username'])){
+        continue;
+      } 
+
       /* Check if entry starts with an ! */
       if(preg_match("/^!/",$this->gotoShares[$key]['server'])){
 
         /* If we are currently editing groups environment, skip those ! entries */ 
         if($this->is_group) continue;
-    
+   
         /* Create pwd reset images */
         if($this->gotoShares[$key]['PwdHash'] != "" && !$hide){
           $img.= "<input type='image' name='gotoShareResetPwd_".base64_encode($key)." 'src='images/list_reset_password.png' alt='"._("Reset password hash")."'