Merge pull request #16826 from nextcloud/backport/16808/stable16

[stable16] Undefined variable response when server is no nextcloud anymore
This commit is contained in:
Roeland Jago Douma 2019-08-22 16:14:00 +02:00 committed by GitHub
commit a33f2248e5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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;