mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 11:06:15 +00:00
Merge pull request #1343 from Phally/patch-1
Minor optimization of CakeEmail::_wrap().
This commit is contained in:
commit
bbcc7b2335
1 changed files with 1 additions and 1 deletions
|
@ -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)) {
|
||||
|
|
Loading…
Add table
Reference in a new issue