Skip to content

Commit

Permalink
Merge pull request DivaVocals#14 from marco-pm/marco-pm-implicit-conv…
Browse files Browse the repository at this point in the history
…ersion-fix

DivaVocals#13 - `imagecopy` float implicit conversion warning
  • Loading branch information
lat9 committed Mar 15, 2023
2 parents 14f4e8a + 43f8fc5 commit 5e29848
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions includes/classes/bmz_image_handler.class.php
Expand Up @@ -766,8 +766,8 @@ protected function resize_imageGD($file_ext, $dest_name, $bg, $quality = 85)
$newwidth = $this->canvas['width'];
$newheight = $this->canvas['height'];
}
$startwidth = (int)($this->canvas['width'] - $newwidth) / 2;
$startheight = (int)($this->canvas['height'] - $newheight) / 2;
$startwidth = (int)(($this->canvas['width'] - $newwidth) / 2);
$startheight = (int)(($this->canvas['height'] - $newheight) / 2);

if ($ihConf['gdlib'] > 1 && function_exists("imagecreatetruecolor")) {
$tmpimg = imagecreatetruecolor($newwidth, $newheight);
Expand Down

0 comments on commit 5e29848

Please sign in to comment.