From 84213c22ad59bff39a7d91302ca05dd0c338942a Mon Sep 17 00:00:00 2001
From: Fil <fil@rezo.net>
Date: Wed, 12 May 2004 08:17:26 +0000
Subject: [PATCH] petites modifs diverses

---
 ecrire/calendrier.php3         | 2 +-
 ecrire/calendrier_semaine.php3 | 1 -
 ecrire/inc_version.php3        | 2 +-
 inc-calcul-squel.php3          | 2 +-
 inc-formulaires.php3           | 4 ++--
 5 files changed, 5 insertions(+), 6 deletions(-)

diff --git a/ecrire/calendrier.php3 b/ecrire/calendrier.php3
index a5427f5bf1..06ef8d8ca9 100644
--- a/ecrire/calendrier.php3
+++ b/ecrire/calendrier.php3
@@ -218,7 +218,7 @@ function afficher_mois($jour_today,$mois_today,$annee_today,$nom_mois){
 			echo "<FONT FACE='arial,helvetica,sans-serif' SIZE=1>";
 			
 			if (count($les_rv[$j])>0){
-				echo join($les_rv[$j],"\n");
+				echo join("\n", $les_rv[$j]);
 			}
 
 			echo $les_articles[$j];
diff --git a/ecrire/calendrier_semaine.php3 b/ecrire/calendrier_semaine.php3
index 9dd94fb866..d5543c8eb4 100644
--- a/ecrire/calendrier_semaine.php3
+++ b/ecrire/calendrier_semaine.php3
@@ -7,7 +7,6 @@ include_ecrire("inc_agenda.php3");
 function afficher_semaine($jour_today,$mois_today,$annee_today){
 	global $spip_lang_rtl, $spip_lang_right, $spip_lang_left;
 	global $connect_id_auteur, $connect_statut;
-	global $spip_lang_rtl;
 	global $spip_ecran;
 	global $couleur_claire, $couleur_foncee;
 
diff --git a/ecrire/inc_version.php3 b/ecrire/inc_version.php3
index 24adc6c3ce..09e2b5afc1 100644
--- a/ecrire/inc_version.php3
+++ b/ecrire/inc_version.php3
@@ -49,7 +49,7 @@ function feed_globals($table, $insecure = true, $ignore_variables_contexte = fal
 	if (is_array($GLOBALS[$table])) {
         reset($GLOBALS[$table]);
         while (list($key, $val) = each($GLOBALS[$table])) {
-			if ($ignore_variables_contexte AND $is_contexte[$key])
+			if ($ignore_variables_contexte AND isset($is_contexte[$key]))
 				unset ($GLOBALS[$key]);
 			else
 				$GLOBALS[$key] = $val;
diff --git a/inc-calcul-squel.php3 b/inc-calcul-squel.php3
index 87226b07ea..5e0d259a91 100644
--- a/inc-calcul-squel.php3
+++ b/inc-calcul-squel.php3
@@ -1286,7 +1286,7 @@ function calculer_champ($id_champ, $id_boucle, $nom_var)
 		}
 		else {
 			\$rech = _T('info_rechercher');
-			\$$nom_var = \"\n<a name='formulaire_recherche'></a>
+			\$$nom_var = \"
 				<form action='$lien' method='get' name='form_rech'>
 				<input type='text' id='formulaire_recherche' name='recherche' value=\\\"\$rech\\\" size='20' class='formrecherche'\";
 			\$$nom_var .= \"></form>\";
diff --git a/inc-formulaires.php3 b/inc-formulaires.php3
index fefbe5e3d6..1ce0c3f864 100644
--- a/inc-formulaires.php3
+++ b/inc-formulaires.php3
@@ -505,8 +505,8 @@ function formulaire_ecrire_auteur($id_auteur, $email_auteur) {
 		echo  "<input type=\"text\" class=\"forml\" name=\"email_message_auteur$id_auteur\" value=\"".entites_html($GLOBALS['email_message_auteur'.$id_auteur])."\" SIZE=\"30\" />\n";
 		echo  "<p><b>"._T('form_prop_sujet')."</b><br />";
 		echo  "<input type=\"text\" class=\"forml\" name=\"sujet_message_auteur$id_auteur\" value=\"".entites_html($GLOBALS['sujet_message_auteur'.$id_auteur])."\" SIZE=\"30\" /></p>\n";
-		echo  "<p><textarea name='texte_message_auteur$id_auteur' rows='10' class='forml' cols='40' wrap=soft>".entites_html($GLOBALS['texte_message_auteur'.$id_auteur])."</textarea></div>\n";
-		echo  "<div align=\"right\"><input type=\"submit\" name=\"Valider\" class=\"spip_bouton\" value=\""._T('form_prop_envoyer')."\" />";
+		echo  "<p><textarea name='texte_message_auteur$id_auteur' rows='10' class='forml' cols='40' wrap=soft>".entites_html($GLOBALS['texte_message_auteur'.$id_auteur])."</textarea></p>\n";
+		echo  "<div align=\"right\"><input type=\"submit\" name=\"Valider\" class=\"spip_bouton\" value=\""._T('form_prop_envoyer')."\" /></div>";
 		echo  "</div></form>";
 	}
 }
-- 
GitLab