From 8f38837933ee756146813a43dc1633cab1a99ae3 Mon Sep 17 00:00:00 2001 From: TheTroll Date: Thu, 18 Mar 2010 17:11:28 +0100 Subject: Fixed / in path --- bin/files.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'bin/files.php') 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; -- cgit v1.2.3