mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 05:58:34 +01:00
"MDL-22583, ignore empty directory"
This commit is contained in:
parent
fe0d368025
commit
7d5739363c
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user