From 07edcdeae354ae97c29a468e1597f4bfe3ae0a7e Mon Sep 17 00:00:00 2001 From: Fil <fil@rezo.net> Date: Sat, 22 Oct 2005 22:03:31 +0000 Subject: [PATCH] conserver un alt="" meme vide lors de reduire_image() (izo_) --- ecrire/inc_logos.php3 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ecrire/inc_logos.php3 b/ecrire/inc_logos.php3 index 6cba94a9cb..2402b8cccf 100644 --- a/ecrire/inc_logos.php3 +++ b/ecrire/inc_logos.php3 @@ -455,7 +455,8 @@ function reduire_image_logo($img, $taille = -1, $taille_y = -1) { $attributs .= ' name="'.entites_html($name).'"'; $attributs_alt = ' alt="'.entites_html($name).'"'; } - if ($alt = extraire_attribut($img, 'alt')) + // si un alt (meme vide) etait present, le recuperer + if (($alt = extraire_attribut($img, 'alt')) !== NULL) $attributs_alt = ' alt="'.entites_html($alt).'"'; $attributs .= $attributs_alt; -- GitLab