diff options
author | Robin <robin@Amaya.(none)> | 2010-05-15 20:23:43 +0200 |
---|---|---|
committer | Robin <robin@Amaya.(none)> | 2010-05-15 20:23:43 +0200 |
commit | 35711d7534eedd5b09a4cedb82dcfbb9455582be (patch) | |
tree | eea44f0c9a07b7dc350e8c60b315e1ffab687778 /inc | |
parent | 8058b242275aed0decac7ce3eaadbe11e24e4a8d (diff) | |
download | nextcloud-server-35711d7534eedd5b09a4cedb82dcfbb9455582be.tar.gz nextcloud-server-35711d7534eedd5b09a4cedb82dcfbb9455582be.zip |
small fixes
Diffstat (limited to 'inc')
-rwxr-xr-x | inc/lib_base.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/inc/lib_base.php b/inc/lib_base.php index 536024697d7..6eef3affd40 100755 --- a/inc/lib_base.php +++ b/inc/lib_base.php @@ -172,7 +172,7 @@ class OC_UTIL { } } $prems=substr(decoct(fileperms($CONFIG_DATADIRECTORY_ROOT)),-3); - if(substr($CONFIG_DATADIRECTORY_ROOT,2,1)!='0'){ + if(substr($prems,-1)!='0'){ chmodr($CONFIG_DATADIRECTORY_ROOT,0770); clearstatcache(); $prems=substr(decoct(fileperms($CONFIG_DATADIRECTORY_ROOT)),-3); @@ -182,7 +182,7 @@ class OC_UTIL { } if($CONFIG_ENABLEBACKUP){ $prems=substr(decoct(fileperms($CONFIG_BACKUPDIRECTORY)),-3); - if(substr($CONFIG_BACKUPDIRECTORY,2,1)!='0'){ + if(substr($prems,-1)!='0'){ chmodr($CONFIG_BACKUPDIRECTORY,0770); clearstatcache(); $prems=substr(decoct(fileperms($CONFIG_BACKUPDIRECTORY)),-3); |