From: Aryeh Gregor Date: Fri, 11 Jan 2008 21:02:39 +0000 (+0000) Subject: I doubt we'll get $this->hookError set to '0', but let's head that off at the pass. X-Git-Tag: 1.31.0-rc.0~50056 X-Git-Url: https://git.cyclocoop.org/%7B%24admin_url%7Dmembres/modifier.php?a=commitdiff_plain;h=a81acf81533ba55fd4db6a42ecad5cface911dbd;p=lhc%2Fweb%2Fwiklou.git I doubt we'll get $this->hookError set to '0', but let's head that off at the pass. --- diff --git a/includes/EditPage.php b/includes/EditPage.php index c26b633232..ddd49e7982 100644 --- a/includes/EditPage.php +++ b/includes/EditPage.php @@ -1037,7 +1037,7 @@ class EditPage { $wgOut->addWikiText( '
' . wfMsg( 'missingcommentheader' ) . '
' ); } - if( $this->hookError ) { + if( $this->hookError !== '' ) { $wgOut->addWikiText( $this->hookError ); }