Skip to content

Commit

Permalink
Merge pull request #10 from lithium-li/fix_params_grouping_warning
Browse files Browse the repository at this point in the history
фикс бага с warning при установке аттрибутов группировки
  • Loading branch information
niksamokhvalov committed Feb 11, 2016
2 parents 33a5478 + ecfea8b commit caf54c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/traits/elements.php
Original file line number Diff line number Diff line change
Expand Up @@ -548,7 +548,7 @@ public function addParamsGrouping($fields = [])
{
if (is_array($fields) && !empty($fields))
{
$this->groupingParams = array_merge($this->groupingParams, $fields);
$this->groupingParams = array_merge(is_array($this->groupingParams) ? $this->groupingParams : [], $fields);
}
}

Expand Down

0 comments on commit caf54c1

Please sign in to comment.