diff comment.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 116ef98b4cb5
line wrap: on
line diff
--- a/comment.php	Sat Oct 20 14:15:10 2007 +0200
+++ b/comment.php	Sat Oct 20 14:25:20 2007 +0200
@@ -50,7 +50,7 @@
 	 {$Mess}<br />
 	 {$infos}
        </div>");
-      $Data->Query("SELECT * FROM Commentaires Where MessId={$id} ORDER BY num_comm");
+      $Data->Query("SELECT * FROM Commentaires Where MessId={$id} AND Visible=1 ORDER BY num_comm");
       $defaultGravatar = urlencode("http://defr.org/Misc/NoGravatar.png");
       while(0 !== ($row = $Data->GetRow())) {
          $dateFormatee = strftime(" à %Hh%M le <span class='Date'>%A %d %B %Y</span>", strtotime($row['DateComment']));