Index: trunk/extensions/FlaggedRevs/FlaggedRevs.hooks.php |
— | — | @@ -504,7 +504,7 @@ |
505 | 505 | $ig->mParser->mOutput->fr_ImageSHA1Keys[$nt->getDBkey()][$time] = $sha1; |
506 | 506 | # Bug 15748, be lax about commons image sync status |
507 | 507 | $file = $file ? $file : self::getLocalFile( $nt, $time ); # FIXME: would be nice not to double fetch! |
508 | | - if( $file->exists() && $file->isLocal() && $time > $ig->mParser->mOutput->fr_newestImageTime ) { |
| 508 | + if( $file && $file->exists() && $file->isLocal() && $time > $ig->mParser->mOutput->fr_newestImageTime ) { |
509 | 509 | $ig->mParser->mOutput->fr_newestImageTime = $time; |
510 | 510 | } |
511 | 511 | return true; |