Index: trunk/extensions/ProofreadPage/ProofreadPage.php |
— | — | @@ -132,7 +132,7 @@ |
133 | 133 | |
134 | 134 | |
135 | 135 | //if multipage, we use the page order, but we should read pagenum from the index |
136 | | - if( $image->exists() && $image->isMultiPage() ) { |
| 136 | + if( $image && $image->exists() && $image->isMultiPage() ) { |
137 | 137 | |
138 | 138 | $pagenr = 1; |
139 | 139 | $parts = explode( '/', $wgTitle->getText() ); |