Fixed a missed variable $errors in set_rules().
diff --git a/system/libraries/Form_validation.php b/system/libraries/Form_validation.php
index 55ef28c..3ec03ae 100644
--- a/system/libraries/Form_validation.php
+++ b/system/libraries/Form_validation.php
@@ -181,7 +181,7 @@
$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']);
+ $this->set_rules($row['field'], $label, $row['rules'], $errors);
}
return $this;