Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Minor optimization of CakeEmail::_wrap().

  • Loading branch information...
commit f79a258a64a1a794c98284b75aa175323fe906bd 1 parent e77d49f
@Phally Phally authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/Cake/Network/Email/CakeEmail.php
View
2  lib/Cake/Network/Email/CakeEmail.php
@@ -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)) {
Please sign in to comment.
Something went wrong with that request. Please try again.