@ -1,6 +1,6 @@
<paquet
prefix="thumbsites"
version="2.0.3"
version="2.0.4"
etat="test"
compatibilite="[4.0.0;4.1.*]"
logo="thumbsites.svg"
@ -160,7 +160,10 @@ function thumbsites_fichier_thumbshot($url_site, $refresh = false) {
// si c'est un png, le convertir en jpg
$a = @getimagesize($thumb_cache);
if ($a[2] == 3) {
if (
is_array($a)
and ($a[2] == 3)
) {
include_spip('inc/filtres_images_lib_mini');
$img = _imagecreatefrompng($filetmp);
_image_imagejpg($img, $thumb_cache);