Skip to content

Commit

Permalink
Merge pull request #45115 from nextcloud/backport/45104/stable27
Browse files Browse the repository at this point in the history
[stable27] fix: Remove bogus code from query builder and fix parameter name
  • Loading branch information
come-nc authored May 10, 2024
2 parents 91a71e8 + 50070e7 commit 7f40354
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions lib/private/DB/QueryBuilder/QueryBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -975,14 +975,10 @@ public function groupBy(...$groupBys) {
*
* @return $this This QueryBuilder instance.
*/
public function addGroupBy(...$groupBys) {
if (count($groupBys) === 1 && is_array($groupBys[0])) {
$$groupBys = $groupBys[0];
}

public function addGroupBy(...$groupBy) {
call_user_func_array(
[$this->queryBuilder, 'addGroupBy'],
$this->helper->quoteColumnNames($groupBys)
$this->helper->quoteColumnNames($groupBy)
);

return $this;
Expand Down

0 comments on commit 7f40354

Please sign in to comment.