Skip to content

Commit

Permalink
Update Email.php
Browse files Browse the repository at this point in the history
  • Loading branch information
obinoob committed Sep 4, 2017
1 parent aa5a012 commit 98b720e
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/Mailer/Email.php
Expand Up @@ -2060,7 +2060,7 @@ public function send($content = null)

return $contents;
}


/**
* Log the email message delivery.
Expand All @@ -2085,19 +2085,19 @@ protected function _logDelivery($contents)
}
Log::write(
$config['level'],
PHP_EOL . $this->_isKeyArray($contents['headers']) . PHP_EOL . PHP_EOL . $this->_isKeyArray($contents['message']),
PHP_EOL . $this->flatten($contents['headers']) . PHP_EOL . PHP_EOL . $this->flatten($contents['message']),
$config['scope']
);
}



/**
* Converts an array to string
* @param null $key
* @return null|string
* @return string
*/
private function _isKeyArray($key = null)
protected function flatten($key = null)
{
return is_array($key) ? implode(';', $key) : $key;
return is_array($key) ? implode(';', $key) : (string) $key;
}

/**
Expand Down

0 comments on commit 98b720e

Please sign in to comment.