Skip to content
Extraits de code Groupes Projets
Valider 1ea51dd7 rédigé par cerdic's avatar cerdic
Parcourir les fichiers

proteger l'$id fournit a calcul_branche_in

parent 4dfaeb00
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -316,10 +316,9 @@ function calcul_branche ($generation) { ...@@ -316,10 +316,9 @@ function calcul_branche ($generation) {
// http://doc.spip.org/@calcul_branche_in // http://doc.spip.org/@calcul_branche_in
function calcul_branche_in($id) { function calcul_branche_in($id) {
// normaliser $id qui a pu arriver comme un array // normaliser $id qui a pu arriver comme un array, comme un entier, ou comme une chaine NN,NN,NN
$id = is_array($id) if (!is_array($id)) $id = explode(',',$id);
? join(',', array_map('sql_quote', $id)) $id = join(',', array_map('intval', $id));
: $id;
// Notre branche commence par la rubrique de depart // Notre branche commence par la rubrique de depart
$branche = $id; $branche = $id;
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter