Commit 32e36348 by Alexander Makarov

Fixed ActiveForm

parent 6b15768a
......@@ -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) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment