diff options
author | Côme Chilliet <come.chilliet@nextcloud.com> | 2022-01-25 09:36:22 +0100 |
---|---|---|
committer | Côme Chilliet <come.chilliet@nextcloud.com> | 2022-01-25 16:53:19 +0100 |
commit | 35dcda36a35e15ce44dfef15724b9d5392f14346 (patch) | |
tree | c9c01d624b5c5c480919a937c5902facc43f5f42 /lib | |
parent | 014ba751658ab214a5f0fe3bb3164b798240ec01 (diff) | |
download | nextcloud-server-35dcda36a35e15ce44dfef15724b9d5392f14346.tar.gz nextcloud-server-35dcda36a35e15ce44dfef15724b9d5392f14346.zip |
Fix OC\Files\Storage\DAV::hasUpdated when cache is not set
Fixes the test OCA\Files_External\Tests\Storage\WebdavTest::testStat on
PHP>=7.4
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/Files/Storage/DAV.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Files/Storage/DAV.php b/lib/private/Files/Storage/DAV.php index 161f346e52f..a065f55ae08 100644 --- a/lib/private/Files/Storage/DAV.php +++ b/lib/private/Files/Storage/DAV.php @@ -796,7 +796,7 @@ class DAV extends Common { if (isset($response['{DAV:}getetag'])) { $etag = trim($response['{DAV:}getetag'], '"'); } - if (!empty($etag) && $cachedData['etag'] !== $etag) { + if (($cachedData === false) || (!empty($etag) && ($cachedData['etag'] !== $etag))) { return true; } elseif (isset($response['{http://open-collaboration-services.org/ns}share-permissions'])) { $sharePermissions = (int)$response['{http://open-collaboration-services.org/ns}share-permissions']; |