Little change for management better the errors in fields

This commit is contained in:
Antonio de la Rosa 2015-12-17 01:48:11 +01:00
parent 243767bc12
commit 479f449b13
25 changed files with 124 additions and 24 deletions

View file

@ -1844,9 +1844,9 @@ class Webmodel {
//If value isn't valid and is required set error for this component...
if($this->components[$key]->required==1 && $arr_components[$key]=="")
if($this->components[$key]->required==1 && $this->components[$key]->error==1)
{
//Set errors...
if($this->components[$key]->std_error=='')
@ -1906,7 +1906,7 @@ class Webmodel {
}
//If not return values sanitized...
return $arr_components;
}