Merge branch 'MDL-77042-401' of https://github.com/paulholden/moodle into MOODLE_401_STABLE

This commit is contained in:
Andrew Nicols 2023-02-06 21:17:04 +08:00
commit b9dece93d8

View File

@ -64,7 +64,7 @@ class data_field_number extends data_field_base {
function display_browse_field($recordid, $template) {
$content = $this->get_data_content($recordid);
if (!$content || empty($content->content)) {
if (!$content || $content->content === '') {
return '';
}
$number = $content->content;