MDL-15351: making sure empty folders are still recognized as folders.

This commit is contained in:
scyrma 2008-09-15 01:51:25 +00:00
parent d31be6062a
commit 207ab754ac

View file

@ -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;