I doubt we'll get $this->hookError set to '0', but let's head that off at the pass.
authorAryeh Gregor <simetrical@users.mediawiki.org>
Fri, 11 Jan 2008 21:02:39 +0000 (21:02 +0000)
committerAryeh Gregor <simetrical@users.mediawiki.org>
Fri, 11 Jan 2008 21:02:39 +0000 (21:02 +0000)
includes/EditPage.php

index c26b633..ddd49e7 100644 (file)
@@ -1037,7 +1037,7 @@ class EditPage {
                                $wgOut->addWikiText( '<div id="mw-missingcommentheader">' . wfMsg( 'missingcommentheader' ) . '</div>' );
                        }
 
-                       if( $this->hookError ) {
+                       if( $this->hookError !== '' ) {
                                $wgOut->addWikiText( $this->hookError );
                        }