diff options
Diffstat (limited to 'extensions/PdfHandler/PdfHandler_body.php')
-rw-r--r-- | extensions/PdfHandler/PdfHandler_body.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/extensions/PdfHandler/PdfHandler_body.php b/extensions/PdfHandler/PdfHandler_body.php index 73ce1b58..8fa6719b 100644 --- a/extensions/PdfHandler/PdfHandler_body.php +++ b/extensions/PdfHandler/PdfHandler_body.php @@ -315,7 +315,7 @@ class PdfHandler extends ImageHandler { */ function pageCount( $image ) { $data = $this->getMetaArray( $image ); - if ( !$data ) { + if ( !$data || !isset( $data['Pages'] ) ) { return false; } return intval( $data['Pages'] ); |