summaryrefslogtreecommitdiff
path: root/bin/files.php
diff options
context:
space:
mode:
authorTheTroll <trolldev@gmail.com>2010-03-18 17:11:28 +0100
committerTheTroll <trolldev@gmail.com>2010-03-18 17:11:28 +0100
commit8f38837933ee756146813a43dc1633cab1a99ae3 (patch)
tree020ae0b578e460cd3f547075f8982ad1ba45c2e8 /bin/files.php
parent93a0a697d16f6e74ecdcc1974d470b7d11819391 (diff)
downloadistreamdev-8f38837933ee756146813a43dc1633cab1a99ae3.tar.gz
istreamdev-8f38837933ee756146813a43dc1633cab1a99ae3.tar.bz2
Fixed / in path
Diffstat (limited to 'bin/files.php')
-rwxr-xr-xbin/files.php5
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;