Skip to content

Commit 0d097c0

Browse files
authored
Thanks Exagone313!
1 parent ca4aa8e commit 0d097c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

thumb.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ function thumbnailImage($imagePath) {
44
$im->setBackgroundColor(new ImagickPixel('transparent'));
55
$im->readImage(realpath($imagePath));
66
$dim=$im->getImageGeometry();
7-
if ( !isset($_GET['wh']) ) $wh=100; $wh=intval($_GET['wh']);
7+
if ( !isset($_GET['wh']) ) $wh=100; else $wh=intval($_GET['wh']);
88
if ( $wh <= 0 ) $wh=100;
99
// $aspect=floatval($dim['width'])/floatval($dim['height']);
1010
// $inverse_aspect=floatval($dim['height'])/floatval($dim['width']);

0 commit comments

Comments
 (0)