diff options
author | Carl Schwan <carl@carlschwan.eu> | 2022-04-13 10:52:26 +0200 |
---|---|---|
committer | Carl Schwan <carl@carlschwan.eu> | 2022-04-14 12:11:02 +0200 |
commit | 1c7ecfc54499d866b9913c135c0c7439634d8bb1 (patch) | |
tree | 162eff580adaa1fe92a3806625f452caf525c738 /apps/dav/lib/Connector/Sabre/FilesPlugin.php | |
parent | 781784553889601d02553931aed8ff1fde95640b (diff) | |
download | nextcloud-server-1c7ecfc54499d866b9913c135c0c7439634d8bb1.tar.gz nextcloud-server-1c7ecfc54499d866b9913c135c0c7439634d8bb1.zip |
Fix an issue with the search backend update
And update autoloader
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
Diffstat (limited to 'apps/dav/lib/Connector/Sabre/FilesPlugin.php')
-rw-r--r-- | apps/dav/lib/Connector/Sabre/FilesPlugin.php | 6 |
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()); }); } } |