fixed a bug that would lead to a PHP notice error of array to string conversion in prep_for_form()
http://codeigniter.com/bug_tracker/bug/4425/
diff --git a/system/libraries/Validation.php b/system/libraries/Validation.php
index 8796d7f..a0f038c 100644
--- a/system/libraries/Validation.php
+++ b/system/libraries/Validation.php
@@ -726,6 +726,8 @@
{
$data[$key] = $this->prep_for_form($val);
}
+
+ return $data;
}
if ($this->_safe_form_data == FALSE OR $data == '')
@@ -805,6 +807,6 @@
}
// END Validation Class
-
-/* End of file Validation.php */
+
+/* End of file Validation.php */
/* Location: ./system/libraries/Validation.php */
\ No newline at end of file