Browse Source

2 warning PHP de conversion implicite de float vers int

pull/7/head
RealET 5 months ago
parent
commit
26e79fae18
  1. 4
      inc/centre_image_lib.php

4
inc/centre_image_lib.php

@ -112,10 +112,10 @@ class _centre_image {
return false;
// first proportionally resize dimensions by width dimension
$tempW = $newW;
$tempH = ($h*$newW)/$w;
$tempH = intval(($h*$newW)/$w);
// if it's too small, try resizing dimensions by height instead
if($tempH<$newH) {
$tempW = ($w*$newH)/$h;
$tempW = intval(($w*$newH)/$h);
$tempH = $newH;
}
// if it's still too small for some reason,

Loading…
Cancel
Save