summaryrefslogtreecommitdiff
path: root/bin/files.php
diff options
context:
space:
mode:
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;