Skip to content

Commit

Permalink
Merge pull request #16808 from nextcloud/bugfix/16626/undefined-respo…
Browse files Browse the repository at this point in the history
…nse-if-server-is-no-nextcloud-anymore

Undefined variable response when server is no nextcloud anymore
  • Loading branch information
rullzer authored Aug 20, 2019
2 parents 650e4f9 + 3236424 commit 148c6e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/private/Files/Storage/DAV.php
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ protected function propfind($path) {
);
$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;
Expand Down

0 comments on commit 148c6e6

Please sign in to comment.