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 <louis@chmn.me>
Signed-off-by: Côme Chilliet <91878298+come-nc@users.noreply.github.com>
  • Loading branch information
come-nc and artonge authored Jan 2, 2024
1 parent 9f13737 commit e447dd0
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 e447dd0

Please sign in to comment.