Index: trunk/extensions/ProofreadPage/ProofreadPage.php |
— | — | @@ -299,7 +299,7 @@ |
300 | 300 | } |
301 | 301 | |
302 | 302 | $image = wfFindFile( $imageTitle ); |
303 | | - if ( $image->exists() ) { |
| 303 | + if ( $image && $image->exists() ) { |
304 | 304 | $width = $image->getWidth(); |
305 | 305 | $height = $image->getHeight(); |
306 | 306 | if($m[2]) { |