r95657 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r95656‎ | r95657 | r95658 >
Date:12:27, 29 August 2011
Author:nikerabbit
Status:deferred
Tags:
Comment:
Handle invalid titles
Modified paths:
  • /trunk/extensions/SemanticForms/specials/SF_FormEdit.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticForms/specials/SF_FormEdit.php
@@ -120,7 +120,7 @@
121121 } else {
122122 $target_title = Title::newFromText( $target_name );
123123
124 - if ( $target_title->exists() ) {
 124+ if ( $target_title && $target_title->exists() ) {
125125 if ( $wgRequest->getVal( 'query' ) == 'true' ) {
126126 $page_contents = null;
127127 //$page_is_source = false;