diff options
author | TheTroll <trolldev@gmail.com> | 2010-03-18 18:28:30 +0100 |
---|---|---|
committer | TheTroll <trolldev@gmail.com> | 2010-03-18 18:28:30 +0100 |
commit | ee8dd44d5f871555332d74ddbb5ea3d112794fbe (patch) | |
tree | 1aff816b6b3aeca30ef6e89e242474054f897f45 /bin/files.php | |
parent | 127839c6a77457bccb174efda16dc882aff8907c (diff) | |
download | istreamdev-ee8dd44d5f871555332d74ddbb5ea3d112794fbe.tar.gz istreamdev-ee8dd44d5f871555332d74ddbb5ea3d112794fbe.tar.bz2 |
Dont show empty dirs
Diffstat (limited to 'bin/files.php')
-rwxr-xr-x | bin/files.php | 4 |
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; |