From: alex-brainstorm Date: Mon, 10 May 2004 14:55:23 +0000 (+0000) Subject: Use null as default value since value is tested against null. Was breaking search... X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=d4b2cc0af61df5c27103d611fd906babba51d454;p=squirrelmail.git Use null as default value since value is tested against null. Was breaking search code. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@7423 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- diff --git a/functions/forms.php b/functions/forms.php index f3efadde..97fb746f 100644 --- a/functions/forms.php +++ b/functions/forms.php @@ -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"' : '')); }