mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-01 14:30:32 +02:00
[ticket/8652] Sending 2 emails on 2 replies
This is a fix for the problem of the system sending 2 emails when there are 2 replies to a topic where the user is subscribed in a topic and the forum that contains the topic. This simple fix seems to solve the problem. In simple tests I made it shows it does. PHPBB3-8652
This commit is contained in:
@@ -1286,6 +1286,12 @@ function user_notification($mode, $subject, $topic_title, $forum_name, $forum_id
|
|||||||
{
|
{
|
||||||
$msg_users[] = $row;
|
$msg_users[] = $row;
|
||||||
$update_notification[$row['notify_type']][] = $row['user_id'];
|
$update_notification[$row['notify_type']][] = $row['user_id'];
|
||||||
|
if ($row['notify_type'] === 'topic')
|
||||||
|
{
|
||||||
|
// Using SQL characteristics. If it didn't exist it isn't added.
|
||||||
|
// It's very rare to find someone that is registered in topic and noone is registered in the forum
|
||||||
|
$update_notification['forum'][] = $row['user_id'];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
unset($notify_rows);
|
unset($notify_rows);
|
||||||
|
Reference in New Issue
Block a user