Upgrade to CodeIgniter 2.0.3
This commit is contained in:
@@ -72,7 +72,7 @@ if ( ! function_exists('form_open'))
|
||||
|
||||
if (is_array($hidden) AND count($hidden) > 0)
|
||||
{
|
||||
$form .= sprintf("\n<div class=\"hidden\">%s</div>", form_hidden($hidden));
|
||||
$form .= sprintf("<div style=\"display:none\">%s</div>", form_hidden($hidden));
|
||||
}
|
||||
|
||||
return $form;
|
||||
@@ -1032,25 +1032,23 @@ if ( ! function_exists('_get_validation_object'))
|
||||
{
|
||||
$CI =& get_instance();
|
||||
|
||||
// We set this as a variable since we're returning by reference
|
||||
// We set this as a variable since we're returning by reference.
|
||||
$return = FALSE;
|
||||
|
||||
if ( ! isset($CI->load->_ci_classes) OR ! isset($CI->load->_ci_classes['form_validation']))
|
||||
|
||||
if (FALSE !== ($object = $CI->load->is_loaded('form_validation')))
|
||||
{
|
||||
return $return;
|
||||
if ( ! isset($CI->$object) OR ! is_object($CI->$object))
|
||||
{
|
||||
return $return;
|
||||
}
|
||||
|
||||
return $CI->$object;
|
||||
}
|
||||
|
||||
$object = $CI->load->_ci_classes['form_validation'];
|
||||
|
||||
if ( ! isset($CI->$object) OR ! is_object($CI->$object))
|
||||
{
|
||||
return $return;
|
||||
}
|
||||
|
||||
return $CI->$object;
|
||||
|
||||
return $return;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/* End of file form_helper.php */
|
||||
/* Location: ./system/helpers/form_helper.php */
|
||||
/* Location: ./system/helpers/form_helper.php */
|
||||
|
||||
Reference in New Issue
Block a user