summaryrefslogtreecommitdiffstats
path: root/files/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'files/index.php')
-rw-r--r--files/index.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/files/index.php b/files/index.php
index 2a78e8a438e..7ac3bce6051 100644
--- a/files/index.php
+++ b/files/index.php
@@ -42,6 +42,9 @@ $dir = isset( $_GET['dir'] ) ? $_GET['dir'] : '';
$files = array();
foreach( OC_FILES::getdirectorycontent( $dir ) as $i ){
$i["date"] = OC_UTIL::formatDate($i["mtime"] );
+ if($i['directory']=='/'){
+ $i['directory']='';
+ }
$files[] = $i;
}