Merge pull request #16808 from nextcloud/bugfix/16626/undefined-response-if-server-is-no-nextcloud-anymore
Undefined variable response when server is no nextcloud anymore
This commit is contained in:
commit
148c6e6f28
|
@ -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