summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorswiergot <swiergot>2005-08-06 17:56:47 +0200
committerswiergot <swiergot>2005-08-06 17:56:47 +0200
commit2950b79c0ba4c645186ae65f484c6dfaf6ad1cb9 (patch)
tree5d8cec398987f3f2194ad6b712d3ef37087b7f4f
parentecf37bd7bcc1cd97029ba46092e39396eba26028 (diff)
downloadaur-2950b79c0ba4c645186ae65f484c6dfaf6ad1cb9.tar.gz
aur-2950b79c0ba4c645186ae65f484c6dfaf6ad1cb9.tar.xz
don't notify users about their own comments (closes #3048)
-rw-r--r--web/html/pkgedit.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/web/html/pkgedit.php b/web/html/pkgedit.php
index 06ed80f8..e5265e0f 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();