1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-25 07:21:03 +02:00

refined validator message building

This commit is contained in:
secretr
2012-04-03 14:37:48 +00:00
parent 049a315d88
commit 4e131c2c50
2 changed files with 3 additions and 3 deletions

View File

@@ -2225,7 +2225,7 @@ class e_front_model extends e_model
* @param integer $error_code [optional]
* @return object
*/
public function addValidationError($message, $field_title = '', $error_code = '')
public function addValidationError($message, $field_title = '', $error_code = 0)
{
$this->getValidator()->addValidateMessage($field_title, $error_code, $message)->setIsValidData(false);
return $this;