summaryrefslogtreecommitdiff
path: root/inc/form.php
diff options
context:
space:
mode:
authorAdrian Lang <lang@cosmocode.de>2009-10-22 15:59:06 +0200
committerAdrian Lang <lang@cosmocode.de>2009-10-22 15:59:06 +0200
commita0fe6e280288f42911535b6790f72e27a16f5113 (patch)
tree8a6e85fa2cfa38b2bd3c84ddd59e4bbefd060c52 /inc/form.php
parent804e2f2f6882dcf7b125406acfc1e7e53a520934 (diff)
downloadrpg-a0fe6e280288f42911535b6790f72e27a16f5113.tar.gz
rpg-a0fe6e280288f42911535b6790f72e27a16f5113.tar.bz2
Always set value parameter of select fields for compatibility with IE
darcs-hash:20091022135906-e4919-33ba1dc139c4f3e9d9dfe873e35ac059b66a7b98.gz
Diffstat (limited to 'inc/form.php')
-rw-r--r--inc/form.php6
1 files changed, 2 insertions, 4 deletions
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 .= '<option'.$p.'>'.formText($text).'</option>';
}