From b05b2ededc697c0eebab40e6d4df2cd617c97cd4 Mon Sep 17 00:00:00 2001 From: Marc MAURICE Date: Sun, 17 Oct 2010 17:00:21 +0200 Subject: [PATCH] Bugfix in file extension detection --- index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.php b/index.php index db2a590..b9b7309 100644 --- a/index.php +++ b/index.php @@ -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 -- 1.7.10.4