Code

Fixed gotoEnviroment Shares
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 4 Dec 2007 12:59:40 +0000 (12:59 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 4 Dec 2007 12:59:40 +0000 (12:59 +0000)
-Don't display password only entries

git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@8000 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/personal/environment/class_environment.inc

index 4434f9cbc1e19df21c1801779ccb2e51f0d5f858..3d5de28c2a84d43f9b54196535b5e2638637592b 100644 (file)
@@ -702,6 +702,14 @@ class environment extends plugin
     foreach($tmp as $key => $value){
       $img = "";
 
+      /* 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'])){