From: Max Semenik Date: Thu, 3 Dec 2009 20:18:28 +0000 (+0000) Subject: Fixed warning introduced in r59702 X-Git-Tag: 1.31.0-rc.0~38639 X-Git-Url: http://git.cyclocoop.org/%28?a=commitdiff_plain;h=a8572ab9466c9eb355ed37abfa836b9d45956848;p=lhc%2Fweb%2Fwiklou.git Fixed warning introduced in r59702 --- 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; }