Skip to content

Commit

Permalink
Merge pull request #45104 from nextcloud/backport/query-builder-fix
Browse files Browse the repository at this point in the history
[stable29] fix: Remove bogus code from query builder and fix parameter name
  • Loading branch information
come-nc authored Apr 30, 2024
2 parents 24eb8ae + 61a47f8 commit 3767cd1
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 3767cd1

Please sign in to comment.