MDL-53402 mod_data: field values of 0 are now displayed.
[moodle.git] / mod / data / field / checkbox / field.class.php
index fd48690..c1b60a8 100644 (file)
@@ -177,7 +177,7 @@ class data_field_checkbox extends data_field_base {
         global $DB;
 
         if ($content = $DB->get_record('data_content', array('fieldid'=>$this->field->id, 'recordid'=>$recordid))) {
-            if (empty($content->content)) {
+            if (strval($content->content) === '') {
                 return false;
             }