From: Joas Schilling Date: Tue, 20 Aug 2019 10:54:58 +0000 (+0200) Subject: Undefined variable response when server is no nextcloud anymore X-Git-Tag: v15.0.12RC1~39^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=8544be08676b6a292020959100105a0d5dead92c;p=nextcloud-server.git Undefined variable response when server is no nextcloud anymore Signed-off-by: Joas Schilling --- 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;