Undefined variable response when server is no nextcloud anymore

Signed-off-by: Joas Schilling <coding@schilljs.com>
pull/16808/head
Joas Schilling 2019-08-20 12:54:58 +07:00
parent 650e4f9f4c
commit 323642454a
No known key found for this signature in database
GPG Key ID: 7076EA9751AACDDA
1 changed files with 1 additions and 1 deletions

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