summaryrefslogtreecommitdiff
path: root/inc/form.php
diff options
context:
space:
mode:
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>';
}