diff --git a/externals/phpmailer/class.phpmailer-lite.php b/externals/phpmailer/class.phpmailer-lite.php index 06cf5cc9c3..61b11d99b1 100644 --- a/externals/phpmailer/class.phpmailer-lite.php +++ b/externals/phpmailer/class.phpmailer-lite.php @@ -1487,7 +1487,7 @@ class PHPMailerLite { $eol = "\r\n"; $escape = '='; $output = ''; - while( list(, $line) = each($lines) ) { + foreach ($lines as $line) { $linlen = strlen($line); $newline = ''; for($i = 0; $i < $linlen; $i++) { @@ -1518,7 +1518,7 @@ class PHPMailerLite { $newline .= $c; } // end of for $output .= $newline.$eol; - } // end of while + } // end of foreach return $output; } diff --git a/externals/phpmailer/class.phpmailer.php b/externals/phpmailer/class.phpmailer.php index 0a413a407b..001876af65 100644 --- a/externals/phpmailer/class.phpmailer.php +++ b/externals/phpmailer/class.phpmailer.php @@ -1619,7 +1619,7 @@ class PHPMailer { $eol = "\r\n"; $escape = '='; $output = ''; - while( list(, $line) = each($lines) ) { + foreach ($lines as $line) { $linlen = strlen($line); $newline = ''; for($i = 0; $i < $linlen; $i++) { @@ -1650,7 +1650,7 @@ class PHPMailer { $newline .= $c; } // end of for $output .= $newline.$eol; - } // end of while + } // end of foreach return $output; }