Merge pull request #16808 from nextcloud/bugfix/16626/undefined-response-if-server-is-no-nextcloud-anymore

Undefined variable response when server is no nextcloud anymore
This commit is contained in:
Roeland Jago Douma 2019-08-20 21:48:25 +02:00 committed by GitHub
commit 148c6e6f28
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -268,7 +268,7 @@ class DAV extends Common {
); );
$this->statCache->set($path, $response); $this->statCache->set($path, $response);
} catch (ClientHttpException $e) { } catch (ClientHttpException $e) {
if ($e->getHttpStatus() === 404) { if ($e->getHttpStatus() === 404 || $e->getHttpStatus() === 405) {
$this->statCache->clear($path . '/'); $this->statCache->clear($path . '/');
$this->statCache->set($path, false); $this->statCache->set($path, false);
return false; return false;