瀏覽代碼

fix(storage): Fix DAV storage as false is never returned

Signed-off-by: Joas Schilling <coding@schilljs.com>
pull/44962/head
Joas Schilling 3 週之前
父節點
當前提交
7cfe36e49b
No account linked to committer's email address
共有 1 個文件被更改,包括 0 次插入6 次删除
  1. 0
    6
      lib/private/Files/Storage/DAV.php

+ 0
- 6
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)) {

Loading…
取消
儲存