Remove unneeded check if htaccess test file already exists

* fixes #20199
This commit is contained in:
Morris Jobke 2016-01-06 09:37:18 +01:00
parent 12b0e9e3bd
commit 516a6d7441
1 changed files with 0 additions and 4 deletions

View File

@ -1215,10 +1215,6 @@ class OC_Util {
// creating a test file
$testFile = $config->getSystemValue('datadirectory', OC::$SERVERROOT . '/data') . '/' . $fileName;
if (file_exists($testFile)) {// already running this test, possible recursive call
return false;
}
$fp = @fopen($testFile, 'w');
if (!$fp) {
throw new OC\HintException('Can\'t create test file to check for working .htaccess file.',