MDL-29817 Form : advcheckbox allows attributes even without group key

This commit is contained in:
Rushikesh
2016-01-21 22:13:27 +05:30
parent aa0b28c5e5
commit c45ef8bc2f
+1 -1
View File
@@ -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']);