fix: use correct variable for order by

Co-authored-by: Joas Schilling <213943+nickvergessen@users.noreply.github.com>
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
This commit is contained in:
Carl Schwan 2026-04-21 14:33:49 +02:00 committed by Robin Appelman
parent 9ac556cdf5
commit d470ad108f
No known key found for this signature in database
GPG key ID: 42B69D8A64526EFB

View file

@ -910,7 +910,7 @@ class DefaultShareProvider implements
if ($offset !== 0 || $limit !== -1) {
// Order by id
$qb->orderBy('id');
$qb->orderBy('s.id');
}
// Set limit and offset
@ -983,7 +983,7 @@ class DefaultShareProvider implements
->setFirstResult(0);
if ($offset !== 0 || $limit !== -1) {
$qb->orderBy('id');
$qb->orderBy('s.id');
}
if ($limit !== -1) {