mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
MDL-15351: making sure empty folders are still recognized as folders.
This commit is contained in:
parent
d31be6062a
commit
207ab754ac
1 changed files with 1 additions and 0 deletions
|
@ -144,6 +144,7 @@ class repository_local extends repository {
|
|||
if ($search && stristr($tmp['title'], $search) !== false) {
|
||||
$_search = false;
|
||||
}
|
||||
$tmp['children'] = array();
|
||||
$_filecount = $this->build_tree($child, $_search, $dynamicmode, $tmp['children']);
|
||||
if ($search && $_filecount) {
|
||||
$tmp['expanded'] = 1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue