Bug 5546 Fix wfElement()
authorAnders Wegge Jakobsen <wegge@users.mediawiki.org>
Tue, 18 Apr 2006 20:45:09 +0000 (20:45 +0000)
committerAnders Wegge Jakobsen <wegge@users.mediawiki.org>
Tue, 18 Apr 2006 20:45:09 +0000 (20:45 +0000)
RELEASE-NOTES
includes/XmlFunctions.php

index 8948fac..6c6fbc4 100644 (file)
@@ -102,6 +102,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
 * (bug 5592) Actions are logged with the default language for the
    wiki, not the language of the user performing the operation.
 * (bug 5644) Error in LanguageBs.php file
+* (bug 5646) Compare for identical types in wfElement()
 
 == Compatibility ==
 
index efb3749..fa22540 100644 (file)
@@ -21,7 +21,7 @@ function wfElement( $element, $attribs = null, $contents = '') {
        if( is_null( $contents ) ) {
                $out .= '>';
        } else {
-               if( $contents == '' ) {
+               if( $contents === '' ) {
                        $out .= ' />';
                } else {
                        $out .= '>' . htmlspecialchars( $contents ) . "</$element>";