]> source.dussan.org Git - nextcloud-server.git/commitdiff
Template: output better html for select options
authorBart Visscher <bartv@thisnet.nl>
Thu, 24 Nov 2011 20:29:48 +0000 (21:29 +0100)
committerBart Visscher <bartv@thisnet.nl>
Thu, 24 Nov 2011 20:36:34 +0000 (21:36 +0100)
lib/template.php

index d1439199e1ee23fb2807d08940bf40eed7eca00f..881d2a27b1e3e96becb53235a3794d0f50743962 100644 (file)
@@ -121,7 +121,7 @@ function html_select_options($options, $selected, $params=array()) {
                        $label = $label[$label_name];
                }
                $select = in_array($value, $selected) ? ' selected="selected"' : '';
-               $html .= '<option value="' . $value . '"' . $select . '>' . $label . '</option>';
+               $html .= '<option value="' . $value . '"' . $select . '>' . $label . '</option>'."\n";
        }
        return $html;
 }