From a8572ab9466c9eb355ed37abfa836b9d45956848 Mon Sep 17 00:00:00 2001 From: Max Semenik Date: Thu, 3 Dec 2009 20:18:28 +0000 Subject: [PATCH] Fixed warning introduced in r59702 --- includes/filerepo/File.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/includes/filerepo/File.php b/includes/filerepo/File.php index 9968ace2bf..bb345295b1 100644 --- a/includes/filerepo/File.php +++ b/includes/filerepo/File.php @@ -561,7 +561,10 @@ abstract class File { wfDebug( __METHOD__.": Doing stat for $thumbPath\n" ); $this->migrateThumbFile( $thumbName ); - if ( ( $thumbTime = filemtime( $thumbPath ) ) !== FALSE && gmdate( 'YmdHis', $thumbTime ) >= $wgThumbnailEpoch ) { + if ( file_exists( $thumbPath ) + && ( $thumbTime = filemtime( $thumbPath ) ) !== FALSE + && gmdate( 'YmdHis', $thumbTime ) >= $wgThumbnailEpoch ) + { $thumb = $this->handler->getTransform( $this, $thumbPath, $thumbUrl, $params ); break; } -- 2.20.1