From 19e07566f8cc646f1624cb274a8a52682635ec9b Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Tue, 12 Aug 2008 17:32:37 +0000 Subject: [PATCH] $thumb could be null --- includes/filerepo/File.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/filerepo/File.php b/includes/filerepo/File.php index 5b9a71e10c..b82f1c4101 100644 --- a/includes/filerepo/File.php +++ b/includes/filerepo/File.php @@ -582,7 +582,7 @@ abstract class File { // Purge. Useful in the event of Core -> Squid connection failure or squid // purge collisions from elsewhere during failure. Don't keep triggering for // "thumbs" which have the main image URL though (bug 13776) - if ( $wgUseSquid && ($thumb->isError() || $thumb->getUrl() != $this->getURL()) ) { + if ( $wgUseSquid && ( !$thumb || $thumb->isError() || $thumb->getUrl() != $this->getURL()) ) { SquidUpdate::purge( array( $thumbUrl ) ); } } while (false); -- 2.20.1