Skip to content

Commit

Permalink
Merge pull request #56 from mmcev106/php8-fix
Browse files Browse the repository at this point in the history
Fixed a warning turned error in PHP8
  • Loading branch information
ihabzee authored Aug 20, 2024
2 parents 0d32ac6 + 2fc1e77 commit c548b53
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
// Get some instrument information as well:
global $Proj;
$instrument = !empty($field_name) ? $Proj->metadata[$field_name]['form_name'] : "";
$instrument_fields = !empty($instrument) ? $Proj->forms[$instrument]['fields'] : "";
$instrument_fields = !empty($instrument) ? $Proj->forms[$instrument]['fields'] : [];

if ($action == "create") {
// Create a default entry for the new field and save it. Then render the edit page.
Expand Down

0 comments on commit c548b53

Please sign in to comment.