diff options
author | Andreas Fischer <bantu@phpbb.com> | 2010-07-23 20:30:21 +0200 |
---|---|---|
committer | Andreas Fischer <bantu@phpbb.com> | 2010-07-23 20:30:21 +0200 |
commit | 95e0340daf8ef9cc5426e4b61a7b292ae57443e6 (patch) | |
tree | 430e969bac6b46d81a0965695f471a675972fbd3 /phpBB/includes/functions_posting.php | |
parent | fc25fe694afdab683789c9ed962c77558f85796c (diff) | |
download | forums-95e0340daf8ef9cc5426e4b61a7b292ae57443e6.tar forums-95e0340daf8ef9cc5426e4b61a7b292ae57443e6.tar.gz forums-95e0340daf8ef9cc5426e4b61a7b292ae57443e6.tar.bz2 forums-95e0340daf8ef9cc5426e4b61a7b292ae57443e6.tar.xz forums-95e0340daf8ef9cc5426e4b61a7b292ae57443e6.zip |
[ticket/9644] Check $mode before calling user_notification() from submit_post()
PHPBB3-9644
Diffstat (limited to 'phpBB/includes/functions_posting.php')
-rw-r--r-- | phpBB/includes/functions_posting.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/includes/functions_posting.php b/phpBB/includes/functions_posting.php index f6f90575d4..919412dd67 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']); } |