diff options
Diffstat (limited to '')
-rw-r--r-- | admin/thumbnail.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/admin/thumbnail.php b/admin/thumbnail.php index 594125a84..543b589cc 100644 --- a/admin/thumbnail.php +++ b/admin/thumbnail.php @@ -51,7 +51,7 @@ function RatioResizeImg($path, $newWidth, $newHeight, $tn_ext) // extension of the picture filename $extension = get_extension($filename); - if ($extension == 'jpg' or $extension == 'JPG') + if (in_array($extension, array('jpg', 'JPG', 'jpeg', 'JPEG'))) { $srcImage = @imagecreatefromjpeg($path); } |