mirror of
https://github.com/moodle/moodle.git
synced 2025-04-05 00:12:42 +02:00
MDL-77042 mod_data: fix empty/zero equality check for numeric field.
This commit is contained in:
parent
8de12b7997
commit
522ee5ae4c
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user