From ba7cf6bc2ef1c9916b8f9ce7f6ce318a698b6ecf Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 7 Aug 2006 06:21:24 +0000 Subject: [PATCH] Updated getShareList function git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4406 594d385d-05f5-0310-b6e9-bd551577e9d8 --- include/class_config.inc | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/include/class_config.inc b/include/class_config.inc index 169b576aa..9657e7ca0 100644 --- a/include/class_config.inc +++ b/include/class_config.inc @@ -677,15 +677,16 @@ class config { $res= get_list("(&(objectClass=goShareServer)(goExportEntry=*))", $categories, $base,array("goExportEntry","cn"),GL_SUBSEARCH); foreach($res as $entry){ - if(isset($entry['goExportEntry']['count'])){ - 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."]"; + if(obj_is_readable($entry['dn'], "server/goShareServer","goExportEntry")){ + if(isset($entry['goExportEntry']['count'])){ + 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); } -- 2.30.2