Skip to content
This repository was archived by the owner on Feb 9, 2025. It is now read-only.

Commit 626e109

Browse files
authored
Update form_body.blade.php
Fixing Array and string offset access syntax with curly braces is deprecated
1 parent 96d5768 commit 626e109

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/views/default/form_body.blade.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@
5858
array_walk($join_arr, 'trim');
5959
$join_table = $join_arr[0];
6060
$join_title = $join_arr[1];
61-
$join_query_{$join_table} = DB::table($join_table)->select($join_title)->where("id", $row->{'id_'.$join_table})->first();
62-
$value = @$join_query_{$join_table}->{$join_title};
61+
$join_query_[$join_table] = DB::table($join_table)->select($join_title)->where("id", $row->{'id_'.$join_table})->first();
62+
$value = @$join_query_[$join_table]->{$join_title};
6363
}
6464
$form['type'] = ($form['type']) ?: 'text';
6565
$type = @$form['type'];
@@ -90,4 +90,4 @@
9090
<p class='text-danger'>{{$type}} is not found in type component system</p><br/>
9191
@endif
9292
<?php
93-
}
93+
}

0 commit comments

Comments
 (0)