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 committed by Backportbot
parent 97f3fbc505
commit 18b4c1e8ca
1 changed files with 1 additions and 1 deletions

View File

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