diff options
author | Matthew Dawson <matthew@mjdsystems.ca> | 2011-01-04 19:42:57 +0300 |
---|---|---|
committer | Matthew Dawson <matthew@mjdsystems.ca> | 2011-01-07 00:52:28 +0300 |
commit | 9e75e34184b38791c75245d6061cdf25e362149f (patch) | |
tree | 96ad05ce59c72dfcd608ce53e6bae6ce85b4a3cd /inc | |
parent | e0f6ad1c9cfb06fc6b1c47dc9f32a80382fb2114 (diff) |
Return a '/' instead of 'false' when listing the root folder.
Signed-off-by: Matthew Dawson <matthew@mjdsystems.ca>
Diffstat (limited to 'inc')
-rw-r--r-- | inc/lib_filesystem.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/inc/lib_filesystem.php b/inc/lib_filesystem.php index 170d296bd23..57e4d7a70c2 100644 --- a/inc/lib_filesystem.php +++ b/inc/lib_filesystem.php @@ -369,6 +369,9 @@ class OC_FILESYSTEM{ } $file=$mp.$file; $file=substr($file,strlen(self::$fakeRoot)); + if($file === '' || $file === false){ + $file = '/'; + } } return $return; } |