From 438b0dbc29c33a9a5f863ae545b7b00c962450b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Lucas?= Date: Tue, 11 Feb 2014 17:01:34 +0100 Subject: [PATCH] In case the image size can not be retrieved then return false. --- book.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/book.php b/book.php index 554822a..8f62b7f 100644 --- a/book.php +++ b/book.php @@ -371,6 +371,8 @@ class Book extends Base { if ($nh >= $h) { return false; } $nw = ($nh*$w)/$h; } + } else { + return false; } //draw the image