diff --git a/inc/Form/OptGroup.php b/inc/Form/OptGroup.php index a3232485018f686194cc0a20e7a04986e4a57de4..66e29f974483f0d4bc0e2dfb3841ab63956ac6a7 100644 --- a/inc/Form/OptGroup.php +++ b/inc/Form/OptGroup.php @@ -8,12 +8,11 @@ class OptGroup extends Element { protected $value; /** - * @param string $name The name of this form element - * @param string $options The available options * @param string $label The label text for this element (will be autoescaped) + * @param array $options The available options */ - public function __construct($name, $options) { - parent::__construct('optGroup', array('label' => $name)); + public function __construct($label, $options) { + parent::__construct('optGroup', array('label' => $label)); $this->options($options); }