Undefined variable response when server is no nextcloud anymore

Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Joas Schilling 2019-08-20 12:54:58 +02:00
parent 650e4f9f4c
commit 323642454a
No known key found for this signature in database
GPG key ID: 7076EA9751AACDDA

View file

@ -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;