Skip to content

Commit

Permalink
[cmrf_views] Fix Undefined index notice
Browse files Browse the repository at this point in the history
  • Loading branch information
jensschuppe committed Apr 20, 2021
1 parent 5080e5d commit e3e3c9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmrf_views/src/CMRFViews.php
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ public function getFields($dataset) {
$views_fields[$field_name] = $this->getMarkupField($field_prop);
break;
case 2: // String field
if ($field_prop['format'] == 'json') {
if (!empty($field_prop['format']) && $field_prop['format'] == 'json') {
$views_fields[$field_name] = $this->getJSONField($field_prop);
break;
}
Expand Down

0 comments on commit e3e3c9d

Please sign in to comment.