Fixes in return of check_form and set_values_form

This commit is contained in:
Antonio de la Rosa 2016-09-03 06:13:07 +02:00
parent 340364b097
commit faa3f8198b

View file

@ -359,11 +359,11 @@ class ModelForm {
if($error==0 && $num_form>0) if($error==0 && $num_form>0)
{ {
return $post; return [$post, $arr_form];
} }
return 0; return [$arr_form, false];
} }
@ -442,6 +442,8 @@ class ModelForm {
} }
} }
return $arr_form;
} }
static public function pass_errors_to_form($model) static public function pass_errors_to_form($model)
@ -484,7 +486,7 @@ class ModelForm {
if($pass_values) if($pass_values)
{ {
ModelForm::set_values_form($arr_form, $post, $show_error=1); $arr_form=ModelForm::set_values_form($arr_form, $post, $show_error=1);
} }