Skip to content

Commit ba1c392

Browse files
committed
TravisCI
1 parent dc3cf5b commit ba1c392

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/DataTableAbstract.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ public function escapeColumns($columns = '*')
254254
*/
255255
public function makeHidden(array $attributes = [])
256256
{
257-
$this->columnDef['make_hidden'] = array_merge_recursive($this->columnDef['make_hidden'] ?: [], $attributes);
257+
$this->columnDef['make_hidden'] = array_merge_recursive(array_get($this->columnDef, 'make_hidden', []), $attributes);
258258

259259
return $this;
260260
}

src/Utilities/Helper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ public static function getOrMethod($method)
156156
*/
157157
public static function convertToArray($row, $filters = [])
158158
{
159-
$row = method_exists($row, 'makeHidden') ? $row->makeHidden($filters['make_hidden']) : $row;
159+
$row = method_exists($row, 'makeHidden') ? $row->makeHidden(array_get($filters, 'make_hidden', [])) : $row;
160160
$data = $row instanceof Arrayable ? $row->toArray() : (array) $row;
161161

162162
foreach ($data as &$value) {

0 commit comments

Comments
 (0)