Skip to content

Commit

Permalink
Replace empty by array_key_exists
Browse files Browse the repository at this point in the history
Co-Authored-By: GoT <PierreRambaud@users.noreply.github.com>
  • Loading branch information
Klemart3D and PierreRambaud committed Mar 13, 2020
1 parent 29ef47a commit e33c966
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 (!empty($field['value'])) {
if (array_key_exists('value', $field)) {
$node_content .= '<![CDATA[' . $field['value'] . ']]>';
}
}
Expand Down

0 comments on commit e33c966

Please sign in to comment.