Skip to content
Permalink
Browse files

Update Email.php

  • Loading branch information...
obinoob committed Sep 4, 2017
1 parent aa5a012 commit 98b720ef9b9435610f7aff3f503dd3039c48b446
Showing with 7 additions and 7 deletions.
  1. +7 −7 src/Mailer/Email.php
@@ -2060,7 +2060,7 @@ public function send($content = null)
return $contents;
}
/**
* Log the email message delivery.
@@ -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;
}
/**

0 comments on commit 98b720e

Please sign in to comment.
You can’t perform that action at this time.