Browse Source

Fixed ActiveForm

tags/2.0.0-beta
Alexander Makarov 11 years ago
parent
commit
32e3634838
  1. 4
      framework/yii/widgets/ActiveForm.php

4
framework/yii/widgets/ActiveForm.php

@ -214,7 +214,9 @@ class ActiveForm extends Widget
*/ */
public function errorSummary($models, $options = []) public function errorSummary($models, $options = [])
{ {
$models = (array)$models; if (!is_array($models)) {
$models = [$models];
}
$lines = []; $lines = [];
foreach ($models as $model) { foreach ($models as $model) {

Loading…
Cancel
Save