r95658 MediaWiki - Code Review archive

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

Diff [purge]

Index: trunk/extensions/SemanticForms/includes/SF_FormPrinter.php
@@ -317,7 +317,7 @@
318318
319319 global $wgOut;
320320 // show previous set of deletions for this page, if it's been deleted before
321 - if ( ! $form_submitted && ! $this->mPageTitle->exists() ) {
 321+ if ( ! $form_submitted && ( $this->mPageTitle && !$this->mPageTitle->exists() ) ) {
322322 $this->showDeletionLog( $wgOut );
323323 }
324324 // Unfortunately, we can't just call userCan() here because, as of MW 1.16,