From 7129d4565a0a4e7b4899deb0aee1fb1d683a7bed Mon Sep 17 00:00:00 2001 From: Rick Ellis Date: Sat, 20 Sep 2008 04:22:25 +0000 Subject: Removed the strict param from in_array() as this was causing some trouble with numeric field names --- system/helpers/form_helper.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/system/helpers/form_helper.php b/system/helpers/form_helper.php index 9bec8116b..81331cda4 100644 --- a/system/helpers/form_helper.php +++ b/system/helpers/form_helper.php @@ -640,7 +640,7 @@ if ( ! function_exists('set_select')) if (is_array($field)) { - if ( ! in_array($value, $field, TRUE)) + if ( ! in_array($value, $field)) { return ''; } @@ -681,7 +681,7 @@ if ( ! function_exists('set_checkbox')) $OBJ =& _get_validation_object(); if ($OBJ === FALSE) - { + { if ( ! isset($_POST[$field])) { if (count($_POST) === 0) @@ -695,7 +695,7 @@ if ( ! function_exists('set_checkbox')) if (is_array($field)) { - if ( ! in_array($value, $field, TRUE)) + if ( ! in_array($value, $field)) { return ''; } @@ -750,7 +750,7 @@ if ( ! function_exists('set_radio')) if (is_array($field)) { - if ( ! in_array($value, $field, TRUE)) + if ( ! in_array($value, $field)) { return ''; } -- cgit v1.2.3-24-g4f1b