diff options
author | Roeland Jago Douma <rullzer@users.noreply.github.com> | 2019-08-20 21:48:25 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-20 21:48:25 +0200 |
commit | 148c6e6f28bd94e07c935e0e65031349b4d5dcee (patch) | |
tree | 552b02220aea7562d9c8e72e902e28db2fd68915 | |
parent | 650e4f9f4c44cf55c28d0e6f7be988056cc6897c (diff) | |
parent | 323642454ad6bed5675c57f84e35286a4528374b (diff) | |
download | nextcloud-server-148c6e6f28bd94e07c935e0e65031349b4d5dcee.tar.gz nextcloud-server-148c6e6f28bd94e07c935e0e65031349b4d5dcee.zip |
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
-rw-r--r-- | lib/private/Files/Storage/DAV.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Files/Storage/DAV.php b/lib/private/Files/Storage/DAV.php index 52ed8900569..c4ebb0a44dc 100644 --- a/lib/private/Files/Storage/DAV.php +++ b/lib/private/Files/Storage/DAV.php @@ -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; |