From c327cc5c77d9e5d96046eab4a6d0903e3918e5d5 Mon Sep 17 00:00:00 2001 From: Rushikesh Date: Thu, 21 Jan 2016 22:20:17 +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 79cd5a47123..f023a2c01bb 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']);