summaryrefslogtreecommitdiff
path: root/inc/Mailer.class.php
diff options
context:
space:
mode:
authorAnika Henke <anika@selfthinker.org>2014-01-26 17:38:22 +0000
committerAnika Henke <anika@selfthinker.org>2014-01-26 17:38:22 +0000
commit8fe276f7d4bf70c4a798e1c5e7bb3da72a33877d (patch)
tree1e3ce9edacc852741af07c070176bd04fb61c4b4 /inc/Mailer.class.php
parentc5393ecb1aa570830d21e9dc95b4c21cd9aa9c01 (diff)
parentca605ff6763b98b580278988791dc5e57fc05a74 (diff)
downloadrpg-8fe276f7d4bf70c4a798e1c5e7bb3da72a33877d.tar.gz
rpg-8fe276f7d4bf70c4a798e1c5e7bb3da72a33877d.tar.bz2
Merge remote-tracking branch 'origin/master' into video-audio
Diffstat (limited to 'inc/Mailer.class.php')
-rw-r--r--inc/Mailer.class.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/inc/Mailer.class.php b/inc/Mailer.class.php
index 186bd531a..2ac2c1d60 100644
--- a/inc/Mailer.class.php
+++ b/inc/Mailer.class.php
@@ -576,7 +576,7 @@ class Mailer {
protected function prepareHeaders() {
$headers = '';
foreach($this->headers as $key => $val) {
- if ($val === '') continue;
+ if ($val === '' || is_null($val)) continue;
$headers .= $this->wrappedHeaderLine($key, $val);
}
return $headers;
@@ -640,16 +640,16 @@ class Mailer {
) return false;
// The To: header is special
- if(isset($this->headers['To'])) {
- $to = $this->headers['To'];
+ if(array_key_exists('To', $this->headers)) {
+ $to = (string)$this->headers['To'];
unset($this->headers['To']);
} else {
$to = '';
}
// so is the subject
- if(isset($this->headers['Subject'])) {
- $subject = $this->headers['Subject'];
+ if(array_key_exists('Subject', $this->headers)) {
+ $subject = (string)$this->headers['Subject'];
unset($this->headers['Subject']);
} else {
$subject = '';