diff options
author | Andrey Andreev <narf@devilix.net> | 2015-06-10 16:38:26 +0200 |
---|---|---|
committer | Andrey Andreev <narf@devilix.net> | 2015-06-10 16:38:26 +0200 |
commit | 38b5eb0cccd06c1819c5c69fc967ce802b39835a (patch) | |
tree | a42da043726ae744d9580a99bc7feffad398e25e /system/libraries | |
parent | b76394834a3e36e8c376913cd9666a8d7a4cea45 (diff) |
Fix #3903
Diffstat (limited to 'system/libraries')
-rw-r--r-- | system/libraries/Form_validation.php | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/system/libraries/Form_validation.php b/system/libraries/Form_validation.php index 7599602c0..36a8148df 100644 --- a/system/libraries/Form_validation.php +++ b/system/libraries/Form_validation.php @@ -815,11 +815,10 @@ class CI_Form_validation { // Callable rules might not have named error messages if ( ! is_string($rule)) { - return; + $line = $this->CI->lang->line('form_validation_error_message_not_set').'(Anonymous function)'; } - // Check if a custom message is defined - if (isset($this->_field_data[$row['field']]['errors'][$rule])) + elseif (isset($this->_field_data[$row['field']]['errors'][$rule])) { $line = $this->_field_data[$row['field']]['errors'][$rule]; } |