Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/apps.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBart Visscher <bartv@thisnet.nl>2012-06-08 23:23:25 +0400
committerBart Visscher <bartv@thisnet.nl>2012-06-08 23:38:10 +0400
commitb06f7a1e7880ab8305c93cbfbac937fe406c0839 (patch)
treea7255f031a7d2663ec8ebc702f3b099709eca30b /files_archive
parent0663eb55da507cfea73d01ce36f6f98b1b628654 (diff)
Don't use substr to get first char of string
Diffstat (limited to 'files_archive')
-rw-r--r--files_archive/lib/storage.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/files_archive/lib/storage.php b/files_archive/lib/storage.php
index b8f7d4683..867616636 100644
--- a/files_archive/lib/storage.php
+++ b/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;