HTMLFormFieldCloner: Pass enpty array, not null, to avoid warning
[lhc/web/wiklou.git] / includes / htmlform / fields / HTMLFormFieldCloner.php
index ec1bd84..f39f54b 100644 (file)
@@ -354,7 +354,7 @@ class HTMLFormFieldCloner extends HTMLFormField {
                        );
                }
 
-               $template = $this->getInputHTMLForKey( $this->uniqueId, null );
+               $template = $this->getInputHTMLForKey( $this->uniqueId, [] );
                $html = Html::rawElement( 'ul', [
                        'id' => "mw-htmlform-cloner-list-{$this->mID}",
                        'class' => 'mw-htmlform-cloner-ul',