From 1dc962b4d15b7dff50493481a2e5441a4a5791bd Mon Sep 17 00:00:00 2001 From: Rotem Liss Date: Fri, 8 Sep 2006 10:11:52 +0000 Subject: [PATCH] (bug 6615) PHP fatal error on bad input to Special:Movepage --- includes/SpecialMovepage.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/SpecialMovepage.php b/includes/SpecialMovepage.php index 086f4d5c70..0593be571b 100644 --- a/includes/SpecialMovepage.php +++ b/includes/SpecialMovepage.php @@ -266,7 +266,7 @@ class MovePageForm { $wgOut->addWikiText( wfMsg( 'talkexists' ) ); } else { $oldTitle = Title::newFromText( $oldText ); - if ( !$oldTitle->isTalkPage() && $talkmoved != 'notalkpage' ) { + if ( isset( $oldTitle ) && !$oldTitle->isTalkPage() && $talkmoved != 'notalkpage' ) { $wgOut->addWikiText( wfMsg( 'talkpagenotmoved', wfMsg( $talkmoved ) ) ); } } -- 2.20.1