diff --git a/htdocs/lib/CMailFile.class.php3 b/htdocs/lib/CMailFile.class.php3 index 22fa9783496..13843129352 100644 --- a/htdocs/lib/CMailFile.class.php3 +++ b/htdocs/lib/CMailFile.class.php3 @@ -115,21 +115,21 @@ class CMailFile // This is not in all PHP versions so I define one here manuall. function my_chunk_split($str) { - $stmp = $str; - $len = strlen($stmp); - $out = ""; - while ($len > 0) { - if ($len >= 76) { - $out = $out . substr($stmp, 0, 76) . "\r\n"; - $stmp = substr($stmp, 76); - $len = $len - 76; - } - else { - $out = $out . $stmp . "\r\n"; - $stmp = ""; $len = 0; - } - } - return $out; + $stmp = $str; + $len = strlen($stmp); + $out = ""; + while ($len > 0) { + if ($len >= 76) { + $out = $out . substr($stmp, 0, 76) . "\r\n"; + $stmp = substr($stmp, 76); + $len = $len - 76; + } + else { + $out = $out . $stmp . "\r\n"; + $stmp = ""; $len = 0; + } + } + return $out; } // end script