From f41cf0c578176c154ec00620a3c349c5b14321cf Mon Sep 17 00:00:00 2001 From: hickert Date: Thu, 6 Oct 2005 08:45:01 +0000 Subject: [PATCH] Fixed environment attach share git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1504 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../environment/class_environment.inc | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/plugins/personal/environment/class_environment.inc b/plugins/personal/environment/class_environment.inc index ca3b22c01..b179c431d 100644 --- a/plugins/personal/environment/class_environment.inc +++ b/plugins/personal/environment/class_environment.inc @@ -143,7 +143,7 @@ class environment extends plugin $tmp2['server'] =$tmp[0]; $tmp2['name'] =$tmp[1]; $tmp2['mountPoint'] =$tmp[2]; - $this->gotoShares[$tmp[1].$tmp[0]]=$tmp2; + $this->gotoShares[$tmp[1]."|".$tmp[0]]=$tmp2; } } @@ -908,15 +908,15 @@ class environment extends plugin foreach($entry['goExportEntry'] as $export){ $shareAttrs = split("\|",$export); if($listboxEntry) { - $return[$shareAttrs[0].$entry['cn'][0]] = $shareAttrs[0]." - ".$entry['cn'][0]; + $return[$shareAttrs[0]."|".$entry['cn'][0]] = $shareAttrs[0]." - ".$entry['cn'][0]; }else{ - $return[$shareAttrs[0].$entry['cn'][0]]['server'] = $entry['cn'][0]; - $return[$shareAttrs[0].$entry['cn'][0]]['name'] = $shareAttrs[0]; - $return[$shareAttrs[0].$entry['cn'][0]]['description'] = $shareAttrs[1]; - $return[$shareAttrs[0].$entry['cn'][0]]['type'] = $shareAttrs[2]; - $return[$shareAttrs[0].$entry['cn'][0]]['charset'] = $shareAttrs[3]; - $return[$shareAttrs[0].$entry['cn'][0]]['path'] = $shareAttrs[4]; - $return[$shareAttrs[0].$entry['cn'][0]]['option'] = $shareAttrs[5]; + $return[$shareAttrs[0]."|".$entry['cn'][0]]['server'] = $entry['cn'][0]; + $return[$shareAttrs[0]."|".$entry['cn'][0]]['name'] = $shareAttrs[0]; + $return[$shareAttrs[0]."|".$entry['cn'][0]]['description'] = $shareAttrs[1]; + $return[$shareAttrs[0]."|".$entry['cn'][0]]['type'] = $shareAttrs[2]; + $return[$shareAttrs[0]."|".$entry['cn'][0]]['charset'] = $shareAttrs[3]; + $return[$shareAttrs[0]."|".$entry['cn'][0]]['path'] = $shareAttrs[4]; + $return[$shareAttrs[0]."|".$entry['cn'][0]]['option'] = $shareAttrs[5]; } } } @@ -950,7 +950,7 @@ class environment extends plugin $a_return = array(); if(is_array($this->gotoShares)){ foreach($this->gotoShares as $share){ - $a_return[$share['name']]= $share['name']." [".$share['server']."]"; + $a_return[$share['name']."|".$share['server']]= $share['name']." [".$share['server']."]"; } } return($a_return); -- 2.30.2