From efb436d97ad86c5ac72b29646a7da72db1275784 Mon Sep 17 00:00:00 2001 From: Git'Fellow <12234510+solracsf@users.noreply.github.com> Date: Wed, 17 Jan 2024 14:24:11 +0100 Subject: [PATCH] Fix $fileinfo Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com> --- lib/Versions/VersionsBackend.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Versions/VersionsBackend.php b/lib/Versions/VersionsBackend.php index 42752597e..670151dad 100644 --- a/lib/Versions/VersionsBackend.php +++ b/lib/Versions/VersionsBackend.php @@ -71,10 +71,10 @@ public function getVersionsForFile(IUser $user, FileInfo $fileInfo): array { try { $groupfoldersVersionsFolder = $this->getVersionsFolder($mount->getFolderId()); /** @var Folder $versionsFolder */ - $versionsFolder = $groupfoldersVersionsFolder->get((string)$file->getId()); + $versionsFolder = $groupfoldersVersionsFolder->get((string)$fileInfo->getId()); } catch (NotFoundException $e) { // The folder for the file's versions might not exists if no versions has been create yet. - $versionsFolder = $groupfoldersVersionsFolder->newFolder((string)$file->getId()); + $versionsFolder = $groupfoldersVersionsFolder->newFolder((string)$fileInfo->getId()); } $versions = $this->getVersionsForFileFromDB($fileInfo, $user, $folderId);