aboutsummaryrefslogtreecommitdiffstats
path: root/includes/SpecialMovepage.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/SpecialMovepage.php')
-rw-r--r--includes/SpecialMovepage.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/SpecialMovepage.php b/includes/SpecialMovepage.php
index 4f0c48d580ab..ebbd79db2a26 100644
--- a/includes/SpecialMovepage.php
+++ b/includes/SpecialMovepage.php
@@ -130,7 +130,7 @@ class MovePageForm {
$nt = Title::newFromText( $this->newTitle );
# don't allow moving to pages with # in
- if ( $nt->getFragment() != '' ) {
+ if ( !$nt || $nt->getFragment() != '' ) {
$this->showForm( wfMsg( "badtitletext" ) );
return;
}