diff options
author | Victor Dubiniuk <victor.dubiniuk@gmail.com> | 2019-09-10 12:06:33 +0300 |
---|---|---|
committer | backportbot[bot] <backportbot[bot]@users.noreply.github.com> | 2024-11-08 16:11:47 +0000 |
commit | 562a70e2c96200a440e49cec09df4f75cf4107d9 (patch) | |
tree | 00d72c03b5a0f0e6539734c21e08177efd05a9cb | |
parent | 98747166a3eefc37f62e5d1a463ee1e92e5d9076 (diff) | |
download | nextcloud-server-backport/49146/stable28.tar.gz nextcloud-server-backport/49146/stable28.zip |
Fix Undefined variable: response notice in case of non-404 errorbackport/49146/stable28
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
-rw-r--r-- | lib/private/Files/Storage/DAV.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/private/Files/Storage/DAV.php b/lib/private/Files/Storage/DAV.php index e5bbbb560da..4dea220fc23 100644 --- a/lib/private/Files/Storage/DAV.php +++ b/lib/private/Files/Storage/DAV.php @@ -283,6 +283,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), @@ -293,9 +294,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); } |