summaryrefslogtreecommitdiffstats
path: root/lib/base.php
diff options
context:
space:
mode:
authorRobin Appelman <icewind1991@gmail.com>2011-04-16 20:27:08 +0200
committerRobin Appelman <icewind1991@gmail.com>2011-04-16 20:27:08 +0200
commitbf45dcb959a4afbfcfb158dea55acf3804c49ea9 (patch)
treeb52b1ac1b3e9f3ceec4da6fba24047194d31cfa8 /lib/base.php
parentd002ed0b944ec2ed269d2aedd589a51b64c67a60 (diff)
downloadnextcloud-server-bf45dcb959a4afbfcfb158dea55acf3804c49ea9.tar.gz
nextcloud-server-bf45dcb959a4afbfcfb158dea55acf3804c49ea9.zip
only check for permissions for folders that exists
Diffstat (limited to 'lib/base.php')
-rw-r--r--lib/base.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/base.php b/lib/base.php
index 7e862b978b1..05ff4040b9d 100644
--- a/lib/base.php
+++ b/lib/base.php
@@ -292,7 +292,7 @@ class OC_UTIL {
}else{
//TODO: premisions checks for windows hosts
}
- if(!is_writable($CONFIG_DATADIRECTORY_ROOT)){
+ if(is_dir($CONFIG_DATADIRECTORY_ROOT) and !is_writable($CONFIG_DATADIRECTORY_ROOT)){
$errors[]=array('error'=>'Data directory ('.$CONFIG_DATADIRECTORY_ROOT.') not writable by ownCloud<br/>','hint'=>$permissionsHint);
}