Skip to content

Commit

Permalink
Added check to empty form fields array
Browse files Browse the repository at this point in the history
  • Loading branch information
jan-vince committed Aug 9, 2023
1 parent 26d8bea commit e40c5e1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
4 changes: 4 additions & 0 deletions models/Settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,10 @@ private function getFieldsList($type = false, $forceType = false){
$output = [];
$outputAll = [];

if(!is_array(Settings::getTranslated('form_fields', []))) {
return [];
}

foreach (Settings::getTranslated('form_fields', []) as $field) {

$fieldName = $field['name'] . ' ['. $field ['type'] . ']';
Expand Down
4 changes: 3 additions & 1 deletion updates/version.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -301,4 +301,6 @@
1.63.5:
- Fixed messages counter
1.63.6:
- Fixed Bootstrap 5 validation classes
- Fixed Bootstrap 5 validation classes
1.63.7:
- Added check to empty form fields array

0 comments on commit e40c5e1

Please sign in to comment.