From 39aa64f4126870c5048cd1b78bd0f81848b15907 Mon Sep 17 00:00:00 2001 From: hickert Date: Tue, 4 Dec 2007 12:59:40 +0000 Subject: [PATCH] Fixed gotoEnviroment Shares -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 | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/plugins/personal/environment/class_environment.inc b/plugins/personal/environment/class_environment.inc index 4434f9cbc..3d5de28c2 100644 --- a/plugins/personal/environment/class_environment.inc +++ b/plugins/personal/environment/class_environment.inc @@ -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'])){ -- 2.30.2