From a0fe6e280288f42911535b6790f72e27a16f5113 Mon Sep 17 00:00:00 2001 From: Adrian Lang Date: Thu, 22 Oct 2009 15:59:06 +0200 Subject: Always set value parameter of select fields for compatibility with IE darcs-hash:20091022135906-e4919-33ba1dc139c4f3e9d9dfe873e35ac059b66a7b98.gz --- inc/form.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'inc/form.php') diff --git a/inc/form.php b/inc/form.php index 650ebfa0a..56afd3fec 100644 --- a/inc/form.php +++ b/inc/form.php @@ -886,10 +886,8 @@ function form_listboxfield($attrs) { foreach ($attrs['_options'] as $opt) { @list($value,$text,$select) = $opt; $p = ''; - if (!is_null($text)) - $p .= ' value="'.formText($value).'"'; - else - $text = $value; + if(is_null($text)) $text = $value; + $p .= ' value="'.formText($value).'"'; if (!empty($select)) $p .= ' selected="selected"'; $s .= ''.formText($text).''; } -- cgit v1.2.3