diff options
author | rub <rub@piwigo.org> | 2009-08-26 20:17:28 +0000 |
---|---|---|
committer | rub <rub@piwigo.org> | 2009-08-26 20:17:28 +0000 |
commit | 13872e6e923b20fa17483e992989018d9a9f35c4 (patch) | |
tree | 23c9d07e5b862bbeea61e87b6692f816094b279d /include/functions_mail.inc.php | |
parent | 128632c8e93f43eb454e41f930af7186827e3457 (diff) |
merge -c3798 from trunk to branch 2.0
Bug 1145: Mails are sent in double
git-svn-id: http://piwigo.org/svn/branches/2.0@3799 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r-- | include/functions_mail.inc.php | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/include/functions_mail.inc.php b/include/functions_mail.inc.php index 68d8dd37c..e38ef44b6 100644 --- a/include/functions_mail.inc.php +++ b/include/functions_mail.inc.php @@ -608,12 +608,10 @@ function pwg_mail($to, $args = array()) $headers.= 'Reply-To: '.$args['from']."\n"; if (empty($to)) { + // Add only when to is empty + // else mail() add 'To:' on header $headers.= 'To: undisclosed-recipients: ;'."\n"; } - else - { - $headers.= 'To: '.$to."\n"; - } if (!empty($args['Cc'])) { |