Skip to content

Commit

Permalink
Merge pull request #18006 from Klemart3D/Klemart3D-patch-2
Browse files Browse the repository at this point in the history
Check if $field['value'] is set before display it
  • Loading branch information
matks committed Apr 21, 2020
2 parents 73f8b97 + e33c966 commit cb1cf20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classes/webservice/WebserviceOutputXML.php
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ public function renderField($field)
$ret .= ' read_only="true"';
}

if ($field['value'] !== '') {
if (array_key_exists('value', $field)) {
$node_content .= '<![CDATA[' . $field['value'] . ']]>';
}
}
Expand Down

0 comments on commit cb1cf20

Please sign in to comment.