summaryrefslogtreecommitdiff
path: root/bin/files.php
diff options
context:
space:
mode:
authorTheTroll <trolldev@gmail.com>2010-03-18 18:28:30 +0100
committerTheTroll <trolldev@gmail.com>2010-03-18 18:28:30 +0100
commitee8dd44d5f871555332d74ddbb5ea3d112794fbe (patch)
tree1aff816b6b3aeca30ef6e89e242474054f897f45 /bin/files.php
parent127839c6a77457bccb174efda16dc882aff8907c (diff)
downloadistreamdev-ee8dd44d5f871555332d74ddbb5ea3d112794fbe.tar.gz
istreamdev-ee8dd44d5f871555332d74ddbb5ea3d112794fbe.tar.bz2
Dont show empty dirs
Diffstat (limited to 'bin/files.php')
-rwxr-xr-xbin/files.php4
1 files changed, 3 insertions, 1 deletions
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;