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

View file

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