summaryrefslogtreecommitdiff
path: root/inc/Mailer.class.php
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2012-11-23 13:16:20 -0800
committerAndreas Gohr <andi@splitbrain.org>2012-11-23 13:16:20 -0800
commitebd33fd4cb7edee2265314b774f59cdf24826086 (patch)
tree01889658db289d00609170881cfbd9a6bb665c57 /inc/Mailer.class.php
parent78f0e83246184ff6cb8679d086b0fa17ab508057 (diff)
parent91effd8de07e4afc59b6763ac72b268f58cfc941 (diff)
downloadrpg-ebd33fd4cb7edee2265314b774f59cdf24826086.tar.gz
rpg-ebd33fd4cb7edee2265314b774f59cdf24826086.tar.bz2
Merge pull request #145 from dom-mel/mailer
Ignore empty email headers
Diffstat (limited to 'inc/Mailer.class.php')
-rw-r--r--inc/Mailer.class.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/inc/Mailer.class.php b/inc/Mailer.class.php
index cbd1eb0a9..f1492be9b 100644
--- a/inc/Mailer.class.php
+++ b/inc/Mailer.class.php
@@ -555,6 +555,7 @@ class Mailer {
protected function prepareHeaders() {
$headers = '';
foreach($this->headers as $key => $val) {
+ if ($val === '') continue;
$headers .= "$key: $val".MAILHEADER_EOL;
}
return $headers;