diff options
author | Joas Schilling <coding@schilljs.com> | 2024-04-22 15:05:49 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2024-04-22 21:06:00 +0200 |
commit | 7cfe36e49bf73684b4745066320213d74866cfc7 (patch) | |
tree | 59fe37e63be4c9ea6ec81a46c99ba223bda0a989 /lib | |
parent | 3217e08d10edf88bb467baefb1d9d7f2a9bf39d6 (diff) | |
download | nextcloud-server-7cfe36e49bf73684b4745066320213d74866cfc7.tar.gz nextcloud-server-7cfe36e49bf73684b4745066320213d74866cfc7.zip |
fix(storage): Fix DAV storage as false is never returned
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/Files/Storage/DAV.php | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/lib/private/Files/Storage/DAV.php b/lib/private/Files/Storage/DAV.php index e5bbbb560da..6c7d329c48e 100644 --- a/lib/private/Files/Storage/DAV.php +++ b/lib/private/Files/Storage/DAV.php @@ -470,9 +470,6 @@ class DAV extends Common { $this->client->proppatch($this->encodePath($path), ['{DAV:}lastmodified' => $mtime]); // non-owncloud clients might not have accepted the property, need to recheck it $response = $this->client->propfind($this->encodePath($path), ['{DAV:}getlastmodified'], 0); - if ($response === false) { - return false; - } if (isset($response['{DAV:}getlastmodified'])) { $remoteMtime = strtotime($response['{DAV:}getlastmodified']); if ($remoteMtime !== $mtime) { @@ -911,9 +908,6 @@ class DAV extends Common { self::PROPFIND_PROPS, 1 ); - if ($responses === false) { - return; - } array_shift($responses); //the first entry is the current directory if (!$this->statCache->hasKey($directory)) { |