mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
Fix Undefined variable: response notice in case of non-404 error
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
This commit is contained in:
parent
dc7d789616
commit
0f96a2ccb9
1 changed files with 3 additions and 2 deletions
|
|
@ -250,6 +250,7 @@ class DAV extends Common {
|
|||
// 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),
|
||||
|
|
@ -260,9 +261,9 @@ class DAV extends Common {
|
|||
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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue