mirror of https://github.com/nextcloud/server
fix(storage): Fix DAV storage as false is never returned
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
3217e08d10
commit
7cfe36e49b
|
@ -470,9 +470,6 @@ class DAV extends Common {
|
||||||
$this->client->proppatch($this->encodePath($path), ['{DAV:}lastmodified' => $mtime]);
|
$this->client->proppatch($this->encodePath($path), ['{DAV:}lastmodified' => $mtime]);
|
||||||
// non-owncloud clients might not have accepted the property, need to recheck it
|
// non-owncloud clients might not have accepted the property, need to recheck it
|
||||||
$response = $this->client->propfind($this->encodePath($path), ['{DAV:}getlastmodified'], 0);
|
$response = $this->client->propfind($this->encodePath($path), ['{DAV:}getlastmodified'], 0);
|
||||||
if ($response === false) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
if (isset($response['{DAV:}getlastmodified'])) {
|
if (isset($response['{DAV:}getlastmodified'])) {
|
||||||
$remoteMtime = strtotime($response['{DAV:}getlastmodified']);
|
$remoteMtime = strtotime($response['{DAV:}getlastmodified']);
|
||||||
if ($remoteMtime !== $mtime) {
|
if ($remoteMtime !== $mtime) {
|
||||||
|
@ -911,9 +908,6 @@ class DAV extends Common {
|
||||||
self::PROPFIND_PROPS,
|
self::PROPFIND_PROPS,
|
||||||
1
|
1
|
||||||
);
|
);
|
||||||
if ($responses === false) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
array_shift($responses); //the first entry is the current directory
|
array_shift($responses); //the first entry is the current directory
|
||||||
if (!$this->statCache->hasKey($directory)) {
|
if (!$this->statCache->hasKey($directory)) {
|
||||||
|
|
Loading…
Reference in New Issue