aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorVictor Dubiniuk <victor.dubiniuk@gmail.com>2019-09-10 12:06:33 +0300
committerskjnldsv <skjnldsv@protonmail.com>2024-11-08 10:56:25 +0100
commit0f96a2ccb98ecb47ea3c92fe33423fb1ad997f80 (patch)
treecb4937cda5b8b438a30dfbdb160d36244e533eac /lib
parentdc7d78961662982faffb87bd41dba114e4dc6f9a (diff)
downloadnextcloud-server-0f96a2ccb98ecb47ea3c92fe33423fb1ad997f80.tar.gz
nextcloud-server-0f96a2ccb98ecb47ea3c92fe33423fb1ad997f80.zip
Fix Undefined variable: response notice in case of non-404 error
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/private/Files/Storage/DAV.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/private/Files/Storage/DAV.php b/lib/private/Files/Storage/DAV.php
index b849a69246f..3d3937b44b7 100644
--- a/lib/private/Files/Storage/DAV.php
+++ b/lib/private/Files/Storage/DAV.php
@@ -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);
}