only check for permissions for folders that exists

This commit is contained in:
Robin Appelman 2011-04-16 20:27:08 +02:00
parent d002ed0b94
commit bf45dcb959
1 changed files with 1 additions and 1 deletions

View File

@ -292,7 +292,7 @@ class OC_UTIL {
}else{ }else{
//TODO: premisions checks for windows hosts //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); $errors[]=array('error'=>'Data directory ('.$CONFIG_DATADIRECTORY_ROOT.') not writable by ownCloud<br/>','hint'=>$permissionsHint);
} }