diff options
author | Rick Ellis <rick.ellis@ellislab.com> | 2008-09-20 06:22:25 +0200 |
---|---|---|
committer | Rick Ellis <rick.ellis@ellislab.com> | 2008-09-20 06:22:25 +0200 |
commit | 7129d4565a0a4e7b4899deb0aee1fb1d683a7bed (patch) | |
tree | 6eba5a1a2bb3028e42ee5e89708a2f5a18ed7cf4 /system/helpers/form_helper.php | |
parent | 32f84f1a60a8db1d923f28c3a6afc54fa11edb6f (diff) |
Removed the strict param from in_array() as this was causing some trouble with numeric field names
Diffstat (limited to 'system/helpers/form_helper.php')
-rw-r--r-- | system/helpers/form_helper.php | 8 |
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 '';
}
|