Resolve issue in the dashboard caused by PHP7

This commit is contained in:
Kevin MacMartin 2016-01-28 16:40:42 -05:00
parent 336de1cedb
commit 5a02de472d

View file

@ -19,7 +19,8 @@
<div class="container-fluid"> <div class="container-fluid">
<div class="row"> <div class="row">
@foreach($columns as $column) @foreach($columns as $column)
@set('value', empty($item->$column['name']) ? '' : $item->$column['name']) @set('col_name', $column['name'])
@set('value', empty($col_name) ? '' : $item->$col_name)
@if($column['type'] == 'hidden') @if($column['type'] == 'hidden')
<input class="text-input" type="hidden" name="{{ $column['name'] }}" id="{{ $column['name'] }}" value="{{ $value }}" /> <input class="text-input" type="hidden" name="{{ $column['name'] }}" id="{{ $column['name'] }}" value="{{ $value }}" />