diff options
author | Côme Chilliet <come.chilliet@nextcloud.com> | 2024-04-23 10:03:42 +0200 |
---|---|---|
committer | Josh <josh.t.richards@gmail.com> | 2024-05-10 10:02:13 -0400 |
commit | 50070e7a8f08d741acee66f926311572a4d3f3bb (patch) | |
tree | 200c1c9825977711caa33af2b91e6ea6aa542e87 | |
parent | 91a71e8073491b92ce28057fee3603ec4f20bf5d (diff) | |
download | nextcloud-server-50070e7a8f08d741acee66f926311572a4d3f3bb.tar.gz nextcloud-server-50070e7a8f08d741acee66f926311572a4d3f3bb.zip |
fix: Remove bogus code from query builder and fix parameter name
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
-rw-r--r-- | lib/private/DB/QueryBuilder/QueryBuilder.php | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/lib/private/DB/QueryBuilder/QueryBuilder.php b/lib/private/DB/QueryBuilder/QueryBuilder.php index 039596a8fba..2c84951e711 100644 --- a/lib/private/DB/QueryBuilder/QueryBuilder.php +++ b/lib/private/DB/QueryBuilder/QueryBuilder.php @@ -975,14 +975,10 @@ class QueryBuilder implements IQueryBuilder { * * @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; |