From c45ef8bc2fdf615eafa49739ec90a38967a83147 Mon Sep 17 00:00:00 2001 From: Rushikesh Date: Thu, 21 Jan 2016 22:13:27 +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 26ae788005f..e3455810121 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']);