Skip to content

Commit

Permalink
Fixed notice in Grid/Column/Column
Browse files Browse the repository at this point in the history
Fixed notice: Trying to access array offset on value of type null at Grid/Column/Column.php:531
  • Loading branch information
unrealevil committed Feb 26, 2020
1 parent 03050b3 commit 58da64a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Grid/Column/Column.php
Original file line number Diff line number Diff line change
Expand Up @@ -525,6 +525,10 @@ public function setData($data)
*/
public function getData()
{
if (!\is_array($this->data)){
return [];
}

$result = [];

$hasValue = false;
Expand Down Expand Up @@ -685,6 +689,10 @@ public function getFilterType()

public function getFilters($source)
{
if (!\is_array($this->data)) {
return [];
}

$filters = [];

if ($this->hasOperator($this->data['operator'])) {
Expand Down

0 comments on commit 58da64a

Please sign in to comment.