summaryrefslogtreecommitdiff
path: root/inc/Mailer.class.php
diff options
context:
space:
mode:
authorGuy Brand <gb@unistra.fr>2013-12-08 18:04:50 +0100
committerGuy Brand <gb@unistra.fr>2013-12-08 18:04:50 +0100
commitfb23e32bcb0a62b9d404f89139601341f926c1d9 (patch)
tree4d30240af3098ab3bf8b6862b412373f988ab2ea /inc/Mailer.class.php
parent2877053aad7cf3e245eaedfe042ccc4ebfcf273b (diff)
parent8c4759c9d38a21eb352498a8035944ee019e7738 (diff)
downloadrpg-fb23e32bcb0a62b9d404f89139601341f926c1d9.tar.gz
rpg-fb23e32bcb0a62b9d404f89139601341f926c1d9.tar.bz2
Merge branch 'master' into stable
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 = '';