Merge pull request #16826 from nextcloud/backport/16808/stable16
[stable16] Undefined variable response when server is no nextcloud anymore
This commit is contained in:
commit
a33f2248e5
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue