HTMLFormFieldCloner: Pass enpty array, not null, to avoid warning
authorBrad Jorsch <bjorsch@wikimedia.org>
Mon, 15 Aug 2016 14:13:54 +0000 (10:13 -0400)
committerBrad Jorsch <bjorsch@wikimedia.org>
Mon, 15 Aug 2016 14:13:54 +0000 (10:13 -0400)
Bug: T142912
Change-Id: I18edfcb62f7b21f2c1990c73944ee6a956fd4901

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',