diff --git a/framework/yii/widgets/ActiveForm.php b/framework/yii/widgets/ActiveForm.php index 3bd4a11..13135cf 100644 --- a/framework/yii/widgets/ActiveForm.php +++ b/framework/yii/widgets/ActiveForm.php @@ -214,7 +214,9 @@ class ActiveForm extends Widget */ public function errorSummary($models, $options = []) { - $models = (array)$models; + if (!is_array($models)) { + $models = [$models]; + } $lines = []; foreach ($models as $model) {