Skip to content

Commit

Permalink
Fix $fileinfo
Browse files Browse the repository at this point in the history
Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
  • Loading branch information
solracsf authored Jan 17, 2024
1 parent ffe908a commit efb436d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Versions/VersionsBackend.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit efb436d

Please sign in to comment.