From: Marc MAURICE Date: Sun, 17 Oct 2010 15:00:21 +0000 (+0200) Subject: Bugfix in file extension detection X-Git-Tag: v1.0~6 X-Git-Url: http://positon.org/gitweb/?p=bizou.git;a=commitdiff_plain;h=b05b2ededc697c0eebab40e6d4df2cd617c97cd4 Bugfix in file extension detection --- 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