Fix validation of select values in an optgroup always failed

This commit is contained in:
nathangray 2016-09-12 08:39:40 -06:00
parent 3389bdd4b8
commit dee0caa875

View File

@ -448,7 +448,7 @@ class Select extends Etemplate\Widget
{
if (is_array($val))
{
if (isset($val['value']))
if (isset($val['value']) && count($val) <= 2)
{
$values[] = $val['value'];
}