From 8544be08676b6a292020959100105a0d5dead92c Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Tue, 20 Aug 2019 12:54:58 +0200 Subject: [PATCH] Undefined variable response when server is no nextcloud anymore Signed-off-by: Joas Schilling --- lib/private/Files/Storage/DAV.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/private/Files/Storage/DAV.php b/lib/private/Files/Storage/DAV.php index 52ed890056..c4ebb0a44d 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;