Bugfix in file extension detection

This commit is contained in:
Marc MAURICE 2010-10-17 17:00:21 +02:00
parent 0f1b1f8320
commit b05b2ededc

View file

@ -9,7 +9,7 @@ function getPreview($imgFile, $maxSize = THUMB_SIZE)
if (! is_file($newImgFile))
{
$ext = strtolower(substr($file, -4));
$ext = strtolower(substr($imgFile, -4));
if ($ext == ".jpg")
$img = imagecreatefromjpeg($imgFile);
else