From ee8dd44d5f871555332d74ddbb5ea3d112794fbe Mon Sep 17 00:00:00 2001 From: TheTroll Date: Thu, 18 Mar 2010 18:28:30 +0100 Subject: Dont show empty dirs --- bin/files.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bin/files.php b/bin/files.php index be2a364..8f93707 100755 --- a/bin/files.php +++ b/bin/files.php @@ -204,7 +204,9 @@ function filesgetlisting($dir) if ($type == 'folder') { $newentry['path'] = $newentry['path'] .'/'; - $folderlisting[] = $newentry; + + if (glob($newentry['path'])) + $folderlisting[] = $newentry; } else $filelisting[] = $newentry; -- cgit v1.2.3