Follow up r75749. Fixes a case with a linked thumbnail of a non-existant image.
[lhc/web/wiklou.git] / includes / Linker.php
index d0e288f..8d1bf34 100644 (file)
@@ -492,7 +492,7 @@ class Linker {
                        }
                }
 
-               if ( $file && ( isset( $fp['thumbnail'] ) || isset( $fp['manualthumb'] ) || isset( $fp['framed'] ) ) ) {
+               if ( isset( $fp['thumbnail'] ) || isset( $fp['manualthumb'] ) || isset( $fp['framed'] ) ) {
                        global $wgContLang;
                        # Create a thumbnail. Alignment depends on language
                        # writing direction, # right aligned for left-to-right-