From: Niklas Laxström Date: Tue, 4 Oct 2011 20:02:20 +0000 (+0000) Subject: Followup r98578 - expect nulls X-Git-Tag: 1.31.0-rc.0~27270 X-Git-Url: http://git.cyclocoop.org/fichier?a=commitdiff_plain;h=6e17803b18fe11685ed21393092820a5e792c984;p=lhc%2Fweb%2Fwiklou.git Followup r98578 - expect nulls --- diff --git a/includes/EditPage.php b/includes/EditPage.php index d1c8ec5a8f..d12eb59414 100644 --- a/includes/EditPage.php +++ b/includes/EditPage.php @@ -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