diff --git a/functions.php b/functions.php index a3112f1..2ed06da 100644 --- a/functions.php +++ b/functions.php @@ -59,6 +59,7 @@ function makeThumb($item = "") { $imgext = strtolower($parts['extension']); if ( (strcmp($lowest, $imgname) > 0) && ((strcasecmp($imgext, "jpg") == 0) + || (strcasecmp($imgext, "jpeg") == 0) || (strcasecmp($imgext, "png") == 0) || (strcasecmp($imgext, "webp") == 0)) ) { $lowest = $imgname; @@ -82,6 +83,7 @@ function makeThumb($item = "") { $imgext = strtolower($parts['extension']); if ( (strcmp($lowest, $imgname) > 0) && ((strcasecmp($imgext, "jpg") == 0) + || (strcasecmp($imgext, "jpeg") == 0) || (strcasecmp($imgext, "png") == 0) || (strcasecmp($imgext, "webp") == 0)) ) { $lowest = $imgname;