diff --git a/ecrire/public/debug.php b/ecrire/public/debug.php
index 4c2ac5e958a7a3dab951c045fb61d84c633ab4e1..f76fed93407265111f9e4886296ca438acaabcb1 100644
--- a/ecrire/public/debug.php
+++ b/ecrire/public/debug.php
@@ -501,7 +501,7 @@ function debug_affiche($fonc, $tout, $objet, $affiche)
 
 	} else if ($affiche == 'code') {
 		$res .=  "<legend>" .$tout['pretty'][$objet] ."</legend>";
-		$res .= ancre_texte("<"."?php\n".$res."\n?".">");
+		$res .= ancre_texte("<"."?php\n".$quoi."\n?".">");
 	} else if ($affiche == 'boucle') {
 		$res .=  "<legend>" .$tout['pretty'][$objet] ."</legend>";
 		$res .= ancre_texte($res);