Fixed bug #5702, in which the field label was not being fetched properly, when "matching" one field to another.
diff --git a/system/libraries/Form_validation.php b/system/libraries/Form_validation.php
index d51f940..0c7687a 100644
--- a/system/libraries/Form_validation.php
+++ b/system/libraries/Form_validation.php
@@ -662,7 +662,14 @@
 				{

 					$line = $this->_error_messages[$rule];

 				}

-

+				

+				// Is the parameter we are inserting into the error message the name

+				// of another field?  If so we need to grab its "field label"

+				if (isset($this->_field_data[$param]) AND isset($this->_field_data[$param]['label']))

+				{

+					$param = $this->_field_data[$param]['label'];

+				}

+				

 				// Build the error message

 				$message = sprintf($line, $this->_translate_fieldname($row['label']), $param);