]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-15351: making sure empty folders are still recognized as folders.
authorscyrma <scyrma>
Mon, 15 Sep 2008 01:51:25 +0000 (01:51 +0000)
committerscyrma <scyrma>
Mon, 15 Sep 2008 01:51:25 +0000 (01:51 +0000)
repository/local/repository.class.php

index 62dce55b134998ff630e1ea1fd820be27820eda2..aed0a1bd25011e04bd46754bc255ac98b3d20f29 100755 (executable)
@@ -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;