Skip to content

Commit

Permalink
фикс бага с warning при установке аттрибутов группировки
Browse files Browse the repository at this point in the history
  • Loading branch information
Artem Yarygin committed Feb 4, 2016
1 parent 33a5478 commit ecfea8b
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 ecfea8b

Please sign in to comment.