mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
MDL-77042 mod_data: fix empty/zero equality check for numeric field.
This commit is contained in:
parent
df502b3e4c
commit
723b01e416
1 changed files with 1 additions and 1 deletions
|
@ -64,7 +64,7 @@ class data_field_number extends data_field_base {
|
||||||
|
|
||||||
function display_browse_field($recordid, $template) {
|
function display_browse_field($recordid, $template) {
|
||||||
$content = $this->get_data_content($recordid);
|
$content = $this->get_data_content($recordid);
|
||||||
if (!$content || empty($content->content)) {
|
if (!$content || $content->content === '') {
|
||||||
return '';
|
return '';
|
||||||
}
|
}
|
||||||
$number = $content->content;
|
$number = $content->content;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue