summaryrefslogtreecommitdiffstats
path: root/system/libraries
diff options
context:
space:
mode:
authorAhmedul Haque Abid <a_h_abid@hotmail.com>2014-01-09 02:51:10 +0100
committerAhmedul Haque Abid <a_h_abid@hotmail.com>2014-01-09 02:51:10 +0100
commit0742fad5cb283693bf1ef0a63aa90bb6cb2927d8 (patch)
treea26c8095d6fdc8cc69ba2b29a6bd9056ffc8c5fb /system/libraries
parent42b40006fe8b740b416a8e8fd9acb0666349e222 (diff)
Changed $error_msg to $errors
Diffstat (limited to 'system/libraries')
-rw-r--r--system/libraries/Form_validation.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/system/libraries/Form_validation.php b/system/libraries/Form_validation.php
index e140bc46d..55ef28c80 100644
--- a/system/libraries/Form_validation.php
+++ b/system/libraries/Form_validation.php
@@ -150,10 +150,10 @@ class CI_Form_validation {
* @param mixed $field
* @param string $label
* @param mixed $rules
- * @param array $error_msg
+ * @param array $errors
* @return CI_Form_validation
*/
- public function set_rules($field, $label = '', $rules = '', $error_msg = array())
+ public function set_rules($field, $label = '', $rules = '', $errors = array())
{
// No reason to set rules if we have no POST data
// or a validation array has not been specified
@@ -178,7 +178,7 @@ class CI_Form_validation {
$label = isset($row['label']) ? $row['label'] : $row['field'];
// Add the custom error message array
- $error_msg = (isset($row['error_msg']) && is_array($row['error_msg']) ) ? $row['error_msg'] : array();
+ $errors = (isset($row['error_msg']) && is_array($row['error_msg']) ) ? $row['error_msg'] : array();
// Here we go!
$this->set_rules($row['field'], $label, $row['rules']);
@@ -229,7 +229,7 @@ class CI_Form_validation {
'field' => $field,
'label' => $label,
'rules' => $rules,
- 'error_msg' => $error_msg,
+ 'error_msg' => $errors,
'is_array' => $is_array,
'keys' => $indexes,
'postdata' => NULL,