Merge pull request #16825 from nextcloud/backport/16808/stable15
[stable15] Undefined variable response when server is no nextcloud anymore
This commit is contained in:
commit
27c9519381
|
@ -268,7 +268,7 @@ class DAV extends Common {
|
||||||
);
|
);
|
||||||
$this->statCache->set($path, $response);
|
$this->statCache->set($path, $response);
|
||||||
} catch (ClientHttpException $e) {
|
} catch (ClientHttpException $e) {
|
||||||
if ($e->getHttpStatus() === 404) {
|
if ($e->getHttpStatus() === 404 || $e->getHttpStatus() === 405) {
|
||||||
$this->statCache->clear($path . '/');
|
$this->statCache->clear($path . '/');
|
||||||
$this->statCache->set($path, false);
|
$this->statCache->set($path, false);
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in New Issue