Merge pull request #21479 from owncloud/fix-broken-state-in-htaccess-test

Remove unneeded check if htaccess test file already exists
This commit is contained in:
Thomas Müller 2016-01-08 15:53:16 +01:00
commit e60dddf57d
1 changed files with 0 additions and 4 deletions

View File

@ -1201,10 +1201,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.',