Skip to content

Commit

Permalink
Fix comment in lib/Trash/TrashManager.php
Browse files Browse the repository at this point in the history
Co-authored-by: Louis <[email protected]>
Signed-off-by: Côme Chilliet <[email protected]>
  • Loading branch information
come-nc and artonge committed Jan 2, 2024
1 parent 4c8616a commit e177b55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Trash/TrashManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ public function updateTrashedChildren(int $fromFolderId, int $toFolderId, string
$sourceLength = mb_strlen($fromLocation);
$newPathFunction = $fun->concat(
$query->createNamedParameter($toLocation),
$fun->substring('original_location', $query->createNamedParameter($sourceLength + 1, IQueryBuilder::PARAM_INT))// +1 for the leading slash
$fun->substring('original_location', $query->createNamedParameter($sourceLength + 1, IQueryBuilder::PARAM_INT))// +1 for the ending slash
);
$query->update('group_folders_trash')
->set('folder_id', $query->createNamedParameter($toFolderId, IQueryBuilder::PARAM_INT))
Expand Down

0 comments on commit e177b55

Please sign in to comment.