Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fix Undefined variable: response notice in case of non-404 error
Signed-off-by: skjnldsv <[email protected]>
  • Loading branch information
VicDeo authored and backportbot[bot] committed Nov 8, 2024
commit e1df152eb9504c57ff2c1d42ac33464c88d9537c
5 changes: 3 additions & 2 deletions lib/private/Files/Storage/DAV.php
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,7 @@ protected function propfind($path) {
// 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 @@ -263,9 +264,9 @@ protected function propfind($path) {
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