Use null as default value since value is tested against null. Was breaking search...
authoralex-brainstorm <alex-brainstorm@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Mon, 10 May 2004 14:55:23 +0000 (14:55 +0000)
committeralex-brainstorm <alex-brainstorm@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Mon, 10 May 2004 14:55:23 +0000 (14:55 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@7423 7612ce4b-ef26-0410-bec9-ea0150e637f0

functions/forms.php

index f3efadde088efac316225c31747fd8ebf4a97936..97fb746ffe03041ee19f19d273932f852098a945 100644 (file)
@@ -35,7 +35,7 @@ function addPwField($name , $value = null) {
 /**
  * Form checkbox
  */
-function addCheckBox($name, $checked = false, $value='') {
+function addCheckBox($name, $checked = false, $value = null) {
     return addInputField('checkbox', $name, $value,
         ($checked ? ' checked="checked"' : ''));
 }
@@ -43,7 +43,7 @@ function addCheckBox($name, $checked = false, $value='') {
 /**
  * Form radio box
  */
-function addRadioBox($name, $checked = false, $value='') {
+function addRadioBox($name, $checked = false, $value = null) {
     return addInputField('radio', $name, $value, 
         ($checked ? ' checked="checked"' : ''));
 }