Skip to content

Commit

Permalink
Fix Undefined variable: response notice in case of non-404 error
Browse files Browse the repository at this point in the history
  • Loading branch information
VicDeo authored and skjnldsv committed Nov 8, 2024
1 parent dc7d789 commit e92954f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/private/Files/Storage/DAV.php
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,7 @@ protected function propfind(string $path): array|false {
// we either don't know it, or we know it exists but need more details
if (is_null($cachedResponse) || $cachedResponse === true) {
$this->init();
$response = false;
try {
$response = $this->client->propFind(
$this->encodePath($path),
Expand All @@ -260,9 +261,9 @@ protected function propfind(string $path): array|false {
if ($e->getHttpStatus() === 404 || $e->getHttpStatus() === 405) {
$this->statCache->clear($path . '/');
$this->statCache->set($path, false);
return false;
} else {
$this->convertException($e, $path);
}
$this->convertException($e, $path);
} catch (\Exception $e) {
$this->convertException($e, $path);
}
Expand Down

0 comments on commit e92954f

Please sign in to comment.