From a979689003acd0e2722b9abaca8d86a74f345ead Mon Sep 17 00:00:00 2001 From: Brad Jorsch Date: Mon, 15 Aug 2016 10:13:54 -0400 Subject: [PATCH] HTMLFormFieldCloner: Pass enpty array, not null, to avoid warning Bug: T142912 Change-Id: I18edfcb62f7b21f2c1990c73944ee6a956fd4901 --- includes/htmlform/fields/HTMLFormFieldCloner.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/htmlform/fields/HTMLFormFieldCloner.php b/includes/htmlform/fields/HTMLFormFieldCloner.php index ec1bd8427d..f39f54be1a 100644 --- a/includes/htmlform/fields/HTMLFormFieldCloner.php +++ b/includes/htmlform/fields/HTMLFormFieldCloner.php @@ -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', -- 2.20.1