r48812 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r48811‎ | r48812 | r48813 >
Date:13:39, 25 March 2009
Author:werdna
Status:ok
Tags:
Comment:
Fix warning on line 89 -- wfFindFile returns false if it isn't found
Modified paths:
  • /trunk/extensions/ProofreadPage/ProofreadPage.php (modified) (history)

Diff [purge]

Index: trunk/extensions/ProofreadPage/ProofreadPage.php
@@ -86,7 +86,7 @@
8787 $image = wfFindFile( $imageTitle );
8888
8989 //if it is multipage, we use the page order of the file
90 - if( $image->exists() && $image->isMultiPage() ) {
 90+ if( $image && $image->exists() && $image->isMultiPage() ) {
9191
9292 $pagenr = 1;
9393 $parts = explode( '/', $title->getText() );

Status & tagging log