diff --git a/lib/files/cache/scanner.php b/lib/files/cache/scanner.php index 3f1970fb4a..fcb8ccdc8d 100644 --- a/lib/files/cache/scanner.php +++ b/lib/files/cache/scanner.php @@ -120,8 +120,9 @@ class Scanner extends BasicEmitter { $parent = ''; } $parentCacheData = $this->cache->get($parent); - $parentCacheData['etag'] = $this->storage->getETag($parent); - $this->cache->update($parentCacheData['fileid'], $parentCacheData); + $this->cache->update($parentCacheData['fileid'], array( + 'etag' => $this->storage->getETag($parent), + )); } } }