In case the image size can not be retrieved then return false.
This commit is contained in:
parent
3a16231f37
commit
438b0dbc29
1 changed files with 2 additions and 0 deletions
2
book.php
2
book.php
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue