Skip to content

Commit

Permalink
Small tuning phalcon#11390
Browse files Browse the repository at this point in the history
  • Loading branch information
DestinyMKas committed Feb 24, 2016
1 parent 8a0aec8 commit 037134b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions phalcon/paginator/adapter/querybuilder.zep
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ class QueryBuilder extends Adapter implements AdapterInterface
{
var originalBuilder, builder, totalBuilder, totalPages,
limit, numberPage, number, query, page, before, items, totalQuery,
result, row, rowcount, next, groupColumn;
result, row, rowcount, next;

let originalBuilder = this->_builder;

Expand Down Expand Up @@ -167,7 +167,8 @@ class QueryBuilder extends Adapter implements AdapterInterface
*/
var groups = totalBuilder->getGroupBy();
if !empty groups {
if is_array(groups) {
var groupColumn;
if typeof groups == "array" {
let groupColumn = implode(", ", groups);
} else {
let groupColumn = groups;
Expand Down

0 comments on commit 037134b

Please sign in to comment.