Mercurial > defr > DualBlog
diff foot.php @ 1:7dec52982000
Affichage uniquement des messages publiquement visible (non spam)
author | Franck Deroche <webmaster@defr.org> |
---|---|
date | Sat, 20 Oct 2007 14:25:20 +0200 |
parents | 629389204276 |
children |
line wrap: on
line diff
--- a/foot.php Sat Oct 20 14:15:10 2007 +0200 +++ b/foot.php Sat Oct 20 14:25:20 2007 +0200 @@ -154,7 +154,7 @@ notamment à moi-même ) de repérer les nouveaux commentaires qui arrivent, même s'ils le sont sur des posts vieux de 6 mois ^^</p> <ul> <?php - $Data->Query("SELECT C.*, M.Titre FROM Commentaires C, Mess M WHERE C.MessId = M.num_mess ORDER BY num_comm DESC LIMIT 20"); + $Data->Query("SELECT C.*, M.Titre FROM Commentaires C, Mess M WHERE C.MessId = M.num_mess AND C.Visible=1 ORDER BY num_comm DESC LIMIT 20"); $i = 0; while(0 !== ($row = $Data->GetRow())) { $i++; @@ -186,4 +186,4 @@ </dl> </body> -</html> \ No newline at end of file +</html>