Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'apps/dav/lib/Connector/Sabre/FilesPlugin.php')
-rw-r--r--apps/dav/lib/Connector/Sabre/FilesPlugin.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/dav/lib/Connector/Sabre/FilesPlugin.php b/apps/dav/lib/Connector/Sabre/FilesPlugin.php
index 5cc562e0ff8..9c4f912610b 100644
--- a/apps/dav/lib/Connector/Sabre/FilesPlugin.php
+++ b/apps/dav/lib/Connector/Sabre/FilesPlugin.php
@@ -444,7 +444,7 @@ class FilesPlugin extends ServerPlugin {
if ($this->config->getSystemValueBool('enable_file_metadata', true)) {
$propFind->handle(self::FILE_METADATA_SIZE, function () use ($node) {
if (!str_starts_with($node->getFileInfo()->getMimetype(), 'image')) {
- return json_encode([]);
+ return json_encode((object)[]);
}
if ($node->hasMetadata('size')) {
@@ -457,10 +457,10 @@ class FilesPlugin extends ServerPlugin {
$sizeMetadata = $metadataManager->fetchMetadataFor('size', [$node->getId()])[$node->getId()];
// TODO would be nice to display this in the profiler...
- \OC::$server->get(LoggerInterface::class)->warning('Inefficient fetching of metadata');
+ \OC::$server->get(LoggerInterface::class)->debug('Inefficient fetching of metadata');
}
- return json_encode($sizeMetadata->getMetadata());
+ return json_encode((object)$sizeMetadata->getMetadata());
});
}
}