Skip to content
This repository has been archived by the owner on Jan 13, 2024. It is now read-only.

Commit

Permalink
Update form_body.blade.php
Browse files Browse the repository at this point in the history
Fixing Array and string offset access syntax with curly braces is deprecated
  • Loading branch information
fherryfherry authored Dec 30, 2020
1 parent 96d5768 commit 626e109
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/views/default/form_body.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@
array_walk($join_arr, 'trim');
$join_table = $join_arr[0];
$join_title = $join_arr[1];
$join_query_{$join_table} = DB::table($join_table)->select($join_title)->where("id", $row->{'id_'.$join_table})->first();
$value = @$join_query_{$join_table}->{$join_title};
$join_query_[$join_table] = DB::table($join_table)->select($join_title)->where("id", $row->{'id_'.$join_table})->first();
$value = @$join_query_[$join_table]->{$join_title};
}
$form['type'] = ($form['type']) ?: 'text';
$type = @$form['type'];
Expand Down Expand Up @@ -90,4 +90,4 @@
<p class='text-danger'>{{$type}} is not found in type component system</p><br/>
@endif
<?php
}
}

0 comments on commit 626e109

Please sign in to comment.