summaryrefslogtreecommitdiffstats
path: root/web/html/pkgedit.php
diff options
context:
space:
mode:
authorswiergot <swiergot>2005-08-06 15:56:47 +0000
committerswiergot <swiergot>2005-08-06 15:56:47 +0000
commit2950b79c0ba4c645186ae65f484c6dfaf6ad1cb9 (patch)
tree5d8cec398987f3f2194ad6b712d3ef37087b7f4f /web/html/pkgedit.php
parentecf37bd7bcc1cd97029ba46092e39396eba26028 (diff)
downloadaurweb-2950b79c0ba4c645186ae65f484c6dfaf6ad1cb9.tar.xz
don't notify users about their own comments (closes #3048)
Diffstat (limited to 'web/html/pkgedit.php')
-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 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();