diff --git a/widgets/TbActiveForm.php b/widgets/TbActiveForm.php index 6c37852..bdb222c 100644 --- a/widgets/TbActiveForm.php +++ b/widgets/TbActiveForm.php @@ -118,7 +118,7 @@ public function error( $option['status'] = 1; } if ($enableClientValidation) { - $validators = TbArray::getValue('clientValidation', $htmlOptions, array()); + $validators = (array) TbArray::popValue('clientValidation', $htmlOptions, array()); $attributeName = $attribute; if (($pos = strrpos($attribute, ']')) !== false && $pos !== strlen($attribute) - 1) // e.g. [a]name {