summaryrefslogtreecommitdiffstats
path: root/system/helpers/form_helper.php
diff options
context:
space:
mode:
authorGreg Aker <greg.aker@ellislab.com>2011-04-22 17:17:32 +0200
committerGreg Aker <greg.aker@ellislab.com>2011-04-22 17:17:32 +0200
commitc6d918ad24a8844e9de1e145f545bc9f2c7ca9a6 (patch)
tree921e7d03be36e0ad21a38bd38f9878b94607dd25 /system/helpers/form_helper.php
parent1d3021a26e3d542137ceddc6c0f4a08a4f80a096 (diff)
Fix #233 Fixing a regression in _get_validation_object() in the form helper after some refactoring the other day.
Diffstat (limited to 'system/helpers/form_helper.php')
-rw-r--r--system/helpers/form_helper.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/system/helpers/form_helper.php b/system/helpers/form_helper.php
index 51a9c6ca3..16eb4b2c9 100644
--- a/system/helpers/form_helper.php
+++ b/system/helpers/form_helper.php
@@ -898,7 +898,7 @@ if ( ! function_exists('validation_errors'))
function validation_errors($prefix = '', $suffix = '')
{
if (FALSE === ($OBJ =& _get_validation_object()))
- {
+ {var_dump(_get_validation_object()); exit;
return '';
}
@@ -1035,7 +1035,7 @@ if ( ! function_exists('_get_validation_object'))
// 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))
{