Merge pull request #1343 from Phally/patch-1

Minor optimization of CakeEmail::_wrap().
This commit is contained in:
Mark Story 2013-06-10 16:57:34 -07:00
commit bbcc7b2335

View file

@ -1258,7 +1258,7 @@ class CakeEmail {
$message = str_replace(array("\r\n", "\r"), "\n", $message);
$lines = explode("\n", $message);
$formatted = array();
$cut = ($wrapLength == CakeEmail::LINE_LENGTH_MUST) ? true : false;
$cut = ($wrapLength == CakeEmail::LINE_LENGTH_MUST);
foreach ($lines as $line) {
if (empty($line)) {