aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_archive/lib/storage.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files_archive/lib/storage.php')
-rw-r--r--apps/files_archive/lib/storage.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_archive/lib/storage.php b/apps/files_archive/lib/storage.php
index b8f7d468385..86761663611 100644
--- a/apps/files_archive/lib/storage.php
+++ b/apps/files_archive/lib/storage.php
@@ -18,7 +18,7 @@ class OC_Filestorage_Archive extends OC_Filestorage_Common{
private static $rootView;
private function stripPath($path){//files should never start with /
- if(substr($path,0,1)=='/'){
+ if(!$path || $path[0]=='/'){
$path=substr($path,1);
}
return $path;