"MDL-22583, ignore empty directory"

This commit is contained in:
Dongsheng Cai 2010-06-14 03:32:17 +00:00
parent fe0d368025
commit 7d5739363c

View File

@ -109,6 +109,10 @@ class repository_local extends repository {
foreach ($children as $child) {
if ($child->is_directory()) {
$params = $child->get_params();
$subdir_children = $child->get_children();
if (empty($subdir_children)) {
continue;
}
$encodedpath = base64_encode(serialize($params));
// hide user_private area from local plugin, user should
// use private file plugin to access private files