Removed the strict param from in_array() as this was causing some trouble with numeric field names
diff --git a/system/helpers/form_helper.php b/system/helpers/form_helper.php
index 9bec811..81331cd 100644
--- a/system/helpers/form_helper.php
+++ b/system/helpers/form_helper.php
@@ -640,7 +640,7 @@
if (is_array($field))
{
- if ( ! in_array($value, $field, TRUE))
+ if ( ! in_array($value, $field))
{
return '';
}
@@ -681,7 +681,7 @@
$OBJ =& _get_validation_object();
if ($OBJ === FALSE)
- {
+ {
if ( ! isset($_POST[$field]))
{
if (count($_POST) === 0)
@@ -695,7 +695,7 @@
if (is_array($field))
{
- if ( ! in_array($value, $field, TRUE))
+ if ( ! in_array($value, $field))
{
return '';
}
@@ -750,7 +750,7 @@
if (is_array($field))
{
- if ( ! in_array($value, $field, TRUE))
+ if ( ! in_array($value, $field))
{
return '';
}