don't notify users about their own comments (closes #3048)

This commit is contained in:
swiergot 2005-08-06 15:56:47 +00:00
parent ecf37bd7bc
commit 2950b79c0b

View file

@ -81,6 +81,7 @@ if ($_REQUEST["add_Comment"]) {
$q = "SELECT CommentNotify.*, Users.Email "; $q = "SELECT CommentNotify.*, Users.Email ";
$q.= "FROM CommentNotify, Users "; $q.= "FROM CommentNotify, Users ";
$q.= "WHERE Users.ID = CommentNotify.UserID "; $q.= "WHERE Users.ID = CommentNotify.UserID ";
$q.= "AND CommentNotify.UserID != ".uid_from_sid($_COOKIE["AURSID"])." ";
$q.= "AND CommentNotify.PkgID = ".intval($_REQUEST["ID"]); $q.= "AND CommentNotify.PkgID = ".intval($_REQUEST["ID"]);
$result = db_query($q, $dbh); $result = db_query($q, $dbh);
$bcc = array(); $bcc = array();