From 6c182ab88934a79e32a76c16e747074e03b39d67 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Fri, 18 Sep 2009 14:55:42 +0000 Subject: [PATCH] typecast $attribs to an array to avoid on-site notices --- includes/Html.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; -- 2.20.1