Some fixes to avoid Xml::element call with null content when we actually want
[lhc/web/wiklou.git] / includes / HTMLForm.php
index 715c8c8..1ad0129 100644 (file)
@@ -134,7 +134,7 @@ function HTMLSelectGroups($selectname, $selectmsg, $selected=array(), $multiple=
                $attribs = array( 'name' => $selectname );
        }
        $attribs['style'] = 'width: 100%';
-       $out .= wfElement( 'select', $attribs, null );
+       $out .= wfOpenElement( 'select', $attribs );
 
        foreach( $groups as $group ) {
                $attribs = array( 'value' => $group );