From 2950b79c0ba4c645186ae65f484c6dfaf6ad1cb9 Mon Sep 17 00:00:00 2001 From: swiergot Date: Sat, 6 Aug 2005 15:56:47 +0000 Subject: don't notify users about their own comments (closes #3048) --- web/html/pkgedit.php | 1 + 1 file changed, 1 insertion(+) (limited to 'web') diff --git a/web/html/pkgedit.php b/web/html/pkgedit.php index 06ed80f..e5265e0 100644 --- a/web/html/pkgedit.php +++ b/web/html/pkgedit.php @@ -81,6 +81,7 @@ if ($_REQUEST["add_Comment"]) { $q = "SELECT CommentNotify.*, Users.Email "; $q.= "FROM CommentNotify, Users "; $q.= "WHERE Users.ID = CommentNotify.UserID "; + $q.= "AND CommentNotify.UserID != ".uid_from_sid($_COOKIE["AURSID"])." "; $q.= "AND CommentNotify.PkgID = ".intval($_REQUEST["ID"]); $result = db_query($q, $dbh); $bcc = array(); -- cgit v1.2.3-70-g09d2