allow 'value' parameter for array box
authorAntoine Musso <hashar@users.mediawiki.org>
Fri, 1 Oct 2004 01:16:18 +0000 (01:16 +0000)
committerAntoine Musso <hashar@users.mediawiki.org>
Fri, 1 Oct 2004 01:16:18 +0000 (01:16 +0000)
includes/HTMLForm.php

index 9a04139..7edab79 100644 (file)
@@ -34,7 +34,7 @@ class HTMLForm {
                return $this->fieldset( $this->mName.'-'.$varname, $s );
        }
 
-       /* private */ function arraybox( $varname , $size=20 ) {
+       /* private */ function arraybox( $varname , $value='', $size=20 ) {
                $s = '';
                if ( isset( $GLOBALS[$varname] ) && is_array( $GLOBALS[$varname] ) ) {
                        foreach ( $GLOBALS[$varname] as $index=>$element ) {