diff options
| author | Bart van Bragt <bartvb@users.sourceforge.net> | 2002-03-14 13:08:26 +0000 |
|---|---|---|
| committer | Bart van Bragt <bartvb@users.sourceforge.net> | 2002-03-14 13:08:26 +0000 |
| commit | aef33ac0cf82fb504edfcef9bfa579ee17bdd330 (patch) | |
| tree | 01f0100ef0ce2ec9e7a0f0162a43bad1d3666f4e /phpBB/privmsg.php | |
| parent | 3d375a794e71d65d3e89d6ff475439687fe7954f (diff) | |
| download | forums-aef33ac0cf82fb504edfcef9bfa579ee17bdd330.tar forums-aef33ac0cf82fb504edfcef9bfa579ee17bdd330.tar.gz forums-aef33ac0cf82fb504edfcef9bfa579ee17bdd330.tar.bz2 forums-aef33ac0cf82fb504edfcef9bfa579ee17bdd330.tar.xz forums-aef33ac0cf82fb504edfcef9bfa579ee17bdd330.zip | |
Don't send notification mails to users that are not active
git-svn-id: file:///svn/phpbb/trunk@2299 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/privmsg.php')
| -rw-r--r-- | phpBB/privmsg.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/privmsg.php b/phpBB/privmsg.php index 23efe230ff..49053916a1 100644 --- a/phpBB/privmsg.php +++ b/phpBB/privmsg.php @@ -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); } - 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"; @@ -2052,4 +2052,4 @@ $template->pparse("body"); include($phpbb_root_path . 'includes/page_tail.'.$phpEx); -?>
\ No newline at end of file +?> |
