In case the image size can not be retrieved then return false.

This commit is contained in:
Sébastien Lucas 2014-02-11 17:01:34 +01:00
parent 3a16231f37
commit 438b0dbc29
1 changed files with 2 additions and 0 deletions

View File

@ -371,6 +371,8 @@ class Book extends Base {
if ($nh >= $h) { return false; }
$nw = ($nh*$w)/$h;
}
} else {
return false;
}
//draw the image