[SPIP] ~maj v3.0.14-->v3.0.17
[ptitvelo/web/www.git] / www / ecrire / balise / formulaire_.php
index 511978a..631b865 100644 (file)
@@ -44,6 +44,8 @@ function protege_champ($texte){
                        ) {
                                $texte = spip_htmlspecialchars($texte,ENT_QUOTES);
                }
+               elseif(is_bool($texte))
+                       $texte = ($texte?'1':'');
        }
        return $texte;
 }