From f79a258a64a1a794c98284b75aa175323fe906bd Mon Sep 17 00:00:00 2001 From: Frank de Graaf Date: Tue, 11 Jun 2013 00:53:25 +0300 Subject: [PATCH] Minor optimization of CakeEmail::_wrap(). --- lib/Cake/Network/Email/CakeEmail.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Cake/Network/Email/CakeEmail.php b/lib/Cake/Network/Email/CakeEmail.php index 552325e3f..a43f10f32 100644 --- a/lib/Cake/Network/Email/CakeEmail.php +++ b/lib/Cake/Network/Email/CakeEmail.php @@ -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)) {