diff --git a/includes/Media/VideoHandler.php b/includes/Media/VideoHandler.php index ad7254e..321d933 100644 --- a/includes/Media/VideoHandler.php +++ b/includes/Media/VideoHandler.php @@ -74,7 +74,7 @@ public function normaliseParams( $image, &$params ): bool { if ( $title !== null && $title->exists() ) { $coverFile = MediaWikiServices::getInstance()->getRepoGroup()->findFile( $title ); - if ( !$coverFile !== false ) { + if ( $coverFile !== false ) { $transform = $coverFile->transform( [ 'width' => $params['width'] ] ); try {