Fix #233 Fixing a regression in _get_validation_object() in the form helper after some refactoring the other day.
diff --git a/system/helpers/form_helper.php b/system/helpers/form_helper.php
index 51a9c6c..16eb4b2 100644
--- a/system/helpers/form_helper.php
+++ b/system/helpers/form_helper.php
@@ -898,7 +898,7 @@
function validation_errors($prefix = '', $suffix = '')
{
if (FALSE === ($OBJ =& _get_validation_object()))
- {
+ {var_dump(_get_validation_object()); exit;
return '';
}
@@ -1035,7 +1035,7 @@
// We set this as a variable since we're returning by reference.
$return = FALSE;
- if ( ! ($object = $CI->load->is_loaded('form_validation')))
+ if (FALSE !== ($object = $CI->load->is_loaded('form_validation')))
{
if ( ! isset($CI->$object) OR ! is_object($CI->$object))
{