aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_posting.php
diff options
context:
space:
mode:
authorIgor Wiedler <igor@wiedler.ch>2010-09-16 22:42:07 +0200
committerIgor Wiedler <igor@wiedler.ch>2010-09-16 22:42:07 +0200
commit46810f874758516a8b5ce0fc680f05b612f70f60 (patch)
tree3fcd37652d89353d88bd88e7dba84f09c2ae85d1 /phpBB/includes/functions_posting.php
parent9015e03d053ce84619a1081aaaab0ab9f48acb13 (diff)
parent95e0340daf8ef9cc5426e4b61a7b292ae57443e6 (diff)
downloadforums-46810f874758516a8b5ce0fc680f05b612f70f60.tar
forums-46810f874758516a8b5ce0fc680f05b612f70f60.tar.gz
forums-46810f874758516a8b5ce0fc680f05b612f70f60.tar.bz2
forums-46810f874758516a8b5ce0fc680f05b612f70f60.tar.xz
forums-46810f874758516a8b5ce0fc680f05b612f70f60.zip
Merge branch 'ticket/bantu/9644' into develop-olympus
* ticket/bantu/9644: [ticket/9644] Check $mode before calling user_notification() from submit_post()
Diffstat (limited to 'phpBB/includes/functions_posting.php')
-rw-r--r--phpBB/includes/functions_posting.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/includes/functions_posting.php b/phpBB/includes/functions_posting.php
index 5e25648eb8..6fd87db663 100644
--- a/phpBB/includes/functions_posting.php
+++ b/phpBB/includes/functions_posting.php
@@ -2583,7 +2583,7 @@ function submit_post($mode, $subject, $username, $topic_type, &$poll, &$data, $u
}
// Send Notifications
- if ($mode != 'edit' && $mode != 'delete' && $post_approval)
+ if (($mode == 'reply' || $mode == 'quote' || $mode == 'post') && $post_approval)
{
user_notification($mode, $subject, $data['topic_title'], $data['forum_name'], $data['forum_id'], $data['topic_id'], $data['post_id']);
}