Index: trunk/extensions/SemanticForms/specials/SF_FormEdit.php |
— | — | @@ -120,7 +120,7 @@ |
121 | 121 | } else { |
122 | 122 | $target_title = Title::newFromText( $target_name ); |
123 | 123 | |
124 | | - if ( $target_title->exists() ) { |
| 124 | + if ( $target_title && $target_title->exists() ) { |
125 | 125 | if ( $wgRequest->getVal( 'query' ) == 'true' ) { |
126 | 126 | $page_contents = null; |
127 | 127 | //$page_is_source = false; |