mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
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:
parent
e7741f81dd
commit
52f62effa8
1 changed files with 2 additions and 2 deletions
|
|
@ -887,7 +887,7 @@ class DefaultShareProvider implements
|
|||
|
||||
if ($offset !== 0 || $limit !== -1) {
|
||||
// Order by id
|
||||
$qb->orderBy('id');
|
||||
$qb->orderBy('s.id');
|
||||
}
|
||||
|
||||
// Set limit and offset
|
||||
|
|
@ -960,7 +960,7 @@ class DefaultShareProvider implements
|
|||
->setFirstResult(0);
|
||||
|
||||
if ($offset !== 0 || $limit !== -1) {
|
||||
$qb->orderBy('id');
|
||||
$qb->orderBy('s.id');
|
||||
}
|
||||
|
||||
if ($limit !== -1) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue