Followup r98578 - expect nulls
authorNiklas Laxström <nikerabbit@users.mediawiki.org>
Tue, 4 Oct 2011 20:02:20 +0000 (20:02 +0000)
committerNiklas Laxström <nikerabbit@users.mediawiki.org>
Tue, 4 Oct 2011 20:02:20 +0000 (20:02 +0000)
includes/EditPage.php

index d1c8ec5..d12eb59 100644 (file)
@@ -1851,7 +1851,7 @@ HTML
                global $wgOut, $wgUser;
 
                $wikitext = $this->safeUnicodeOutput( $content );
-               if ( $wikitext !== '' ) {
+               if ( strval($wikitext) !== '' ) {
                        // Ensure there's a newline at the end, otherwise adding lines
                        // is awkward.
                        // But don't add a newline if the ext is empty, or Firefox in XHTML