diff --git a/lib/form/advcheckbox.php b/lib/form/advcheckbox.php index ff679d44d27..0d1c3cca054 100644 --- a/lib/form/advcheckbox.php +++ b/lib/form/advcheckbox.php @@ -61,7 +61,7 @@ class MoodleQuickForm_advcheckbox extends HTML_QuickForm_advcheckbox{ $values = array(0, 1); } - if (!is_null($attributes['group'])) { + if (!empty($attributes['group'])) { $this->_group = 'checkboxgroup' . $attributes['group']; unset($attributes['group']);