From de7320bb78f02baa3b7cad3983d5b6d3a9c74f34 Mon Sep 17 00:00:00 2001 From: Derek Allard Date: Tue, 6 May 2008 13:51:02 +0000 Subject: Changed the radio() and checkbox() functions to default to not checked by default. --- system/helpers/form_helper.php | 4 ++-- user_guide/changelog.html | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/system/helpers/form_helper.php b/system/helpers/form_helper.php index 10858339e..c9a6897ae 100644 --- a/system/helpers/form_helper.php +++ b/system/helpers/form_helper.php @@ -289,7 +289,7 @@ if (! function_exists('form_dropdown')) */ if (! function_exists('form_checkbox')) { - function form_checkbox($data = '', $value = '', $checked = TRUE, $extra = '') + function form_checkbox($data = '', $value = '', $checked = FALSE, $extra = '') { $defaults = array('type' => 'checkbox', 'name' => ((! is_array($data)) ? $data : ''), 'value' => $value); @@ -330,7 +330,7 @@ if (! function_exists('form_checkbox')) */ if (! function_exists('form_radio')) { - function form_radio($data = '', $value = '', $checked = TRUE, $extra = '') + function form_radio($data = '', $value = '', $checked = FALSE, $extra = '') { if (! is_array($data)) { diff --git a/user_guide/changelog.html b/user_guide/changelog.html index 181ccd1e7..fec2d12c3 100644 --- a/user_guide/changelog.html +++ b/user_guide/changelog.html @@ -90,6 +90,7 @@ SVN Commit: not currently released

  • Helpers