diff options
author | TheTroll <trolldev@gmail.com> | 2010-03-18 17:11:28 +0100 |
---|---|---|
committer | TheTroll <trolldev@gmail.com> | 2010-03-18 17:11:28 +0100 |
commit | 8f38837933ee756146813a43dc1633cab1a99ae3 (patch) | |
tree | 020ae0b578e460cd3f547075f8982ad1ba45c2e8 /bin/files.php | |
parent | 93a0a697d16f6e74ecdcc1974d470b7d11819391 (diff) | |
download | istreamdev-8f38837933ee756146813a43dc1633cab1a99ae3.tar.gz istreamdev-8f38837933ee756146813a43dc1633cab1a99ae3.tar.bz2 |
Fixed / in path
Diffstat (limited to 'bin/files.php')
-rwxr-xr-x | bin/files.php | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/bin/files.php b/bin/files.php index 8843baf..7afe9e1 100755 --- a/bin/files.php +++ b/bin/files.php @@ -199,13 +199,12 @@ function filesgetlisting($dir) case 'rec': case 'folder': $newentry['type'] = $type; + if ($type == 'folder') + $newentry['path'] = $newentry['path'] .'/'; $listing[] = $newentry; break; default: } - - if ($type == 'folder') - $newentry['path'] = $newentry['path'] .'/'; } return $listing; |