diff --git a/includes/PdfHandler.php b/includes/PdfHandler.php index 86a328d..3612b0d 100644 --- a/includes/PdfHandler.php +++ b/includes/PdfHandler.php @@ -296,7 +296,7 @@ class PdfHandler extends ImageHandler { global $wgPdfOutputExtension; static $mime; - if ( !isset( $mime ) ) { + if ( $mime === null ) { $magic = MediaWikiServices::getInstance()->getMimeAnalyzer(); $mime = $magic->guessTypesForExtension( $wgPdfOutputExtension ); }