Merge pull request #16825 from nextcloud/backport/16808/stable15

[stable15] Undefined variable response when server is no nextcloud anymore
This commit is contained in:
Roeland Jago Douma 2019-08-22 16:14:31 +02:00 committed by GitHub
commit 27c9519381
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);
} catch (ClientHttpException $e) {
if ($e->getHttpStatus() === 404) {
if ($e->getHttpStatus() === 404 || $e->getHttpStatus() === 405) {
$this->statCache->clear($path . '/');
$this->statCache->set($path, false);
return false;