Per Raymond's comment at http://www.mediawiki.org/wiki/Special:Code/MediaWiki/49885...
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Sun, 26 Apr 2009 06:49:25 +0000 (06:49 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Sun, 26 Apr 2009 06:49:25 +0000 (06:49 +0000)
includes/specials/SpecialCreatePage.php

index ba0ce41..473129b 100644 (file)
@@ -40,7 +40,7 @@ class SpecialCreatePage extends SpecialPage {
                // check for no title
                if ( $wgRequest->wasPosted() && $target === '' ) {
                        $this->error( wfMsg( 'createpage-entertitle' ) );
-               } elseif ( $target !== '' ) {
+               } elseif ( $target !== null ) {
                        if ( !$title instanceof Title ) {
                                // check for invalid title
                                $this->error( wfMsg( 'createpage-badtitle', $target ) );