From: Rotem Liss Date: Fri, 8 Sep 2006 10:11:52 +0000 (+0000) Subject: (bug 6615) PHP fatal error on bad input to Special:Movepage X-Git-Tag: 1.31.0-rc.0~55821 X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dcompta/comptes/journal.php?a=commitdiff_plain;h=1dc962b4d15b7dff50493481a2e5441a4a5791bd;p=lhc%2Fweb%2Fwiklou.git (bug 6615) PHP fatal error on bad input to Special:Movepage --- 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 ) ) ); } }