From: Brad Jorsch Date: Mon, 15 Aug 2016 14:13:54 +0000 (-0400) Subject: HTMLFormFieldCloner: Pass enpty array, not null, to avoid warning X-Git-Tag: 1.31.0-rc.0~6067 X-Git-Url: http://git.cyclocoop.org/%27.parametre_url%28%20%20%20generer_action_auteur%28%27charger_plugin%27%2C%20%27update_flux%27%29%2C%27update_flux%27%2C%20%27oui%27%29.%27?a=commitdiff_plain;h=a979689003acd0e2722b9abaca8d86a74f345ead;p=lhc%2Fweb%2Fwiklou.git HTMLFormFieldCloner: Pass enpty array, not null, to avoid warning Bug: T142912 Change-Id: I18edfcb62f7b21f2c1990c73944ee6a956fd4901 --- 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',