Skip to content

Commit

Permalink
Minor optimization of CakeEmail::_wrap().
Browse files Browse the repository at this point in the history
  • Loading branch information
Phally committed Jun 10, 2013
1 parent e77d49f commit f79a258
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Cake/Network/Email/CakeEmail.php
Expand Up @@ -1258,7 +1258,7 @@ protected function _wrap($message, $wrapLength = CakeEmail::LINE_LENGTH_MUST) {
$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)) {
Expand Down

0 comments on commit f79a258

Please sign in to comment.