summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRick Ellis <rick.ellis@ellislab.com>2008-09-20 06:22:25 +0200
committerRick Ellis <rick.ellis@ellislab.com>2008-09-20 06:22:25 +0200
commit7129d4565a0a4e7b4899deb0aee1fb1d683a7bed (patch)
tree6eba5a1a2bb3028e42ee5e89708a2f5a18ed7cf4
parent32f84f1a60a8db1d923f28c3a6afc54fa11edb6f (diff)
Removed the strict param from in_array() as this was causing some trouble with numeric field names
-rw-r--r--system/helpers/form_helper.php8
1 files 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 '';
}