Index: trunk/phase3/includes/specials/SpecialCreatePage.php |
— | — | @@ -40,7 +40,7 @@ |
41 | 41 | // check for no title |
42 | 42 | if ( $wgRequest->wasPosted() && $target === '' ) { |
43 | 43 | $this->error( wfMsg( 'createpage-entertitle' ) ); |
44 | | - } elseif ( $target !== '' ) { |
| 44 | + } elseif ( $target !== null ) { |
45 | 45 | if ( !$title instanceof Title ) { |
46 | 46 | // check for invalid title |
47 | 47 | $this->error( wfMsg( 'createpage-badtitle', $target ) ); |