r91752 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r91751‎ | r91752 | r91753 >
Date:19:43, 8 July 2011
Author:reedy
Status:ok
Tags:
Comment:
PHP Fatal error: Call to a member function isRedirect() on a non-object in /usr/local/apache/common-local/php-1.17/extensions/Collection/Collection.php on line 369

was seen on wmf cluster
Modified paths:
  • /trunk/extensions/Collection/Collection.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Collection/Collection.php
@@ -374,7 +374,7 @@
375375 $result = array();
376376 $imagePath = "$wgScriptPath/extensions/Collection/images";
377377 $t = Title::newFromText( $title );
378 - if ( $t->isRedirect() ) {
 378+ if ( $t && $t->isRedirect() ) {
379379 $a = new Article( $t, 0 );
380380 $t = $a->followRedirect();
381381 if ( $t instanceof Title ) {

Follow-up revisions

RevisionCommit summaryAuthorDate
r91753MFT r91752reedy19:45, 8 July 2011

Status & tagging log