From 207ab754ac408bcade2c7407f79b9b796a39e577 Mon Sep 17 00:00:00 2001 From: scyrma Date: Mon, 15 Sep 2008 01:51:25 +0000 Subject: [PATCH] MDL-15351: making sure empty folders are still recognized as folders. --- repository/local/repository.class.php | 1 + 1 file changed, 1 insertion(+) diff --git a/repository/local/repository.class.php b/repository/local/repository.class.php index 62dce55b13..aed0a1bd25 100755 --- a/repository/local/repository.class.php +++ b/repository/local/repository.class.php @@ -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; -- 2.39.5