Skip to content

Commit

Permalink
Fix non well formed numeric value with PHP7 (#43)
Browse files Browse the repository at this point in the history
  • Loading branch information
lerni authored and jonom committed Apr 24, 2017
1 parent 716a44b commit 7afe1e9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions code/FocusPointImage.php
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,8 @@ public function FocusCropHeight($height)
*/
public function CroppedFocusedImage($width, $height, $upscale = true)
{
$width = intval($width);
$height = intval($height);
// Don't enlarge
if (!$upscale) {
$widthRatio = $this->owner->width / $width;
Expand Down

0 comments on commit 7afe1e9

Please sign in to comment.