r91753 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r91752‎ | r91753 | r91754 >
Date:19:45, 8 July 2011
Author:reedy
Status:ok
Tags:
Comment:
MFT r91752
Modified paths:
  • /branches/wmf/1.17wmf1/extensions/Collection/Collection.php (modified) (history)

Diff [purge]

Index: branches/wmf/1.17wmf1/extensions/Collection/Collection.php
@@ -366,7 +366,7 @@
367367 $result = array();
368368 $imagePath = "$wgScriptPath/extensions/Collection/images";
369369 $t = Title::newFromText( $title );
370 - if ( $t->isRedirect() ) {
 370+ if ( $t && $t->isRedirect() ) {
371371 $a = new Article( $t, 0 );
372372 $t = $a->followRedirect();
373373 if ( $t instanceof Title ) {

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r91752PHP Fatal error: Call to a member function isRedirect() on a non-object in /...reedy19:43, 8 July 2011

Status & tagging log