typecast $attribs to an array to avoid on-site notices
authorAaron Schulz <aaron@users.mediawiki.org>
Fri, 18 Sep 2009 14:55:42 +0000 (14:55 +0000)
committerAaron Schulz <aaron@users.mediawiki.org>
Fri, 18 Sep 2009 14:55:42 +0000 (14:55 +0000)
includes/Html.php

index 8aa1de6..26c427c 100644 (file)
@@ -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;