From: hickert Date: Thu, 6 Oct 2005 08:13:50 +0000 (+0000) Subject: Fixed Profile Server settings, each share from a servers is shown now X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=827899074cb09ecceb592e88f0c5670497b1c1af;p=gosa.git Fixed Profile Server settings, each share from a servers is shown now git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1501 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/personal/environment/class_environment.inc b/plugins/personal/environment/class_environment.inc index 6ec5f58fc..6869de447 100644 --- a/plugins/personal/environment/class_environment.inc +++ b/plugins/personal/environment/class_environment.inc @@ -931,7 +931,12 @@ class environment extends plugin $a_res = $ldap->search("(objectClass=goShareServer)",array("goExportEntry","cn")); $return= array(); while($entry = $ldap->fetch($a_res)){ - $return[$entry['cn'][0]] = $entry['cn'][0]; + unset($entry['goExportEntry']['count']); + foreach($entry['goExportEntry'] as $share){ + $a_share = split("\|",$share); + $sharename = $a_share[0]; + $return[$entry['cn'][0]."|".$sharename] = $entry['cn'][0]." [".$sharename."]"; + } } return($return); } diff --git a/plugins/personal/environment/environment.tpl b/plugins/personal/environment/environment.tpl index 6591037ef..0c458576b 100644 --- a/plugins/personal/environment/environment.tpl +++ b/plugins/personal/environment/environment.tpl @@ -24,7 +24,7 @@
- +