From 32f2116b0808c04fc713325bb04a1767cfd991aa Mon Sep 17 00:00:00 2001 From: Rushikesh Date: Thu, 21 Jan 2016 22:37:43 +0530 Subject: [PATCH] MDL-29817 Form : advcheckbox allows attributes even without group key --- lib/form/advcheckbox.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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']);