mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
fix(files_trashbin): has-preview must return true or false
Currently it returned the boolean value, but PHP will turn it into an integer... Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
This commit is contained in:
parent
17e97e6f85
commit
26a7d6d127
1 changed files with 2 additions and 2 deletions
|
|
@ -111,8 +111,8 @@ class TrashbinPlugin extends ServerPlugin {
|
|||
return $node->getFileId();
|
||||
});
|
||||
|
||||
$propFind->handle(FilesPlugin::HAS_PREVIEW_PROPERTYNAME, function () use ($node) {
|
||||
return $this->previewManager->isAvailable($node->getFileInfo());
|
||||
$propFind->handle(FilesPlugin::HAS_PREVIEW_PROPERTYNAME, function () use ($node): string {
|
||||
return $this->previewManager->isAvailable($node->getFileInfo()) ? 'true' : 'false';
|
||||
});
|
||||
|
||||
$propFind->handle(FilesPlugin::MOUNT_TYPE_PROPERTYNAME, function () {
|
||||
|
|
|
|||
Loading…
Reference in a new issue