summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2019-08-20 12:54:58 +0200
committerJoas Schilling <coding@schilljs.com>2019-08-20 12:54:58 +0200
commit323642454ad6bed5675c57f84e35286a4528374b (patch)
tree552b02220aea7562d9c8e72e902e28db2fd68915 /lib
parent650e4f9f4c44cf55c28d0e6f7be988056cc6897c (diff)
downloadnextcloud-server-323642454ad6bed5675c57f84e35286a4528374b.tar.gz
nextcloud-server-323642454ad6bed5675c57f84e35286a4528374b.zip
Undefined variable response when server is no nextcloud anymore
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/private/Files/Storage/DAV.php2
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;