mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 14:00:31 +02:00
Don't send notification mails to users that are not active
git-svn-id: file:///svn/phpbb/trunk@2299 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -1106,7 +1106,7 @@ else if( $submit || $refresh || $mode != "" )
|
|||||||
message_die(GENERAL_ERROR, "Could not update private message new/read status for user.", "", __LINE__, __FILE__, $sql);
|
message_die(GENERAL_ERROR, "Could not update private message new/read status for user.", "", __LINE__, __FILE__, $sql);
|
||||||
}
|
}
|
||||||
|
|
||||||
if( $to_userdata['user_notify_pm'] && !empty($to_userdata['user_email']) )
|
if( $to_userdata['user_notify_pm'] && !empty($to_userdata['user_email']) && $to_userdata['user_active'] == 1)
|
||||||
{
|
{
|
||||||
$email_headers = "From: " . $board_config['board_email'] . "\nReturn-Path: " . $board_config['board_email'] . "\r\n";
|
$email_headers = "From: " . $board_config['board_email'] . "\nReturn-Path: " . $board_config['board_email'] . "\r\n";
|
||||||
|
|
||||||
@@ -2052,4 +2052,4 @@ $template->pparse("body");
|
|||||||
|
|
||||||
include($phpbb_root_path . 'includes/page_tail.'.$phpEx);
|
include($phpbb_root_path . 'includes/page_tail.'.$phpEx);
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
Reference in New Issue
Block a user