mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 22:28:51 +00:00
Merge branch 'ticket/bantu/9644' into develop-olympus
* ticket/bantu/9644: [ticket/9644] Check $mode before calling user_notification() from submit_post()
This commit is contained in:
commit
46810f8747
1 changed files with 1 additions and 1 deletions
|
@ -2583,7 +2583,7 @@ function submit_post($mode, $subject, $username, $topic_type, &$poll, &$data, $u
|
||||||
}
|
}
|
||||||
|
|
||||||
// Send Notifications
|
// 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']);
|
user_notification($mode, $subject, $data['topic_title'], $data['forum_name'], $data['forum_id'], $data['topic_id'], $data['post_id']);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue