Fix warning if pdfinfo fails but pdftext succedes.

Discovered when fixing bug 41281

Change-Id: I8c956da326e5dc339893a010370d399e97e204fd
This commit is contained in:
Brian Wolff 2013-04-16 19:02:12 -03:00 committed by Gerrit Code Review
parent e3492c3051
commit a6d53125e2

View file

@ -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'] );