From: Aaron Schulz Date: Fri, 18 Sep 2009 14:55:42 +0000 (+0000) Subject: typecast $attribs to an array to avoid on-site notices X-Git-Tag: 1.31.0-rc.0~39643 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=6c182ab88934a79e32a76c16e747074e03b39d67;p=lhc%2Fweb%2Fwiklou.git typecast $attribs to an array to avoid on-site notices --- diff --git a/includes/Html.php b/includes/Html.php index 8aa1de6034..26c427cd66 100644 --- a/includes/Html.php +++ b/includes/Html.php @@ -293,10 +293,11 @@ class Html { * @return string HTML fragment that goes between element name and '>' * (starting with a space if at least one attribute is output) */ - public static function expandAttributes( $attribs = array() ) { + public static function expandAttributes( $attribs ) { global $wgHtml5, $wgWellFormedXml; $ret = ''; + $attribs = (array)$attribs; foreach ( $attribs as $key => $value ) { if ( $value === false ) { continue;