From a81acf81533ba55fd4db6a42ecad5cface911dbd Mon Sep 17 00:00:00 2001 From: Aryeh Gregor Date: Fri, 11 Jan 2008 21:02:39 +0000 Subject: [PATCH] I doubt we'll get $this->hookError set to '0', but let's head that off at the pass. --- includes/EditPage.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ); } -- 2.20.1