aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_messenger.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/includes/functions_messenger.php')
-rw-r--r--phpBB/includes/functions_messenger.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/phpBB/includes/functions_messenger.php b/phpBB/includes/functions_messenger.php
index 9dbb85235e..95d293c04d 100644
--- a/phpBB/includes/functions_messenger.php
+++ b/phpBB/includes/functions_messenger.php
@@ -1434,9 +1434,10 @@ function mail_encode($str)
{
$text = '';
- while (sizeof($array) && intval((strlen($text . $array[0]) + 2) / 3) << 2 <= $split_length)
+ while (sizeof($array) && intval((strlen($text . current($array)) + 2) / 3) << 2 <= $split_length)
{
- $text .= array_shift($array);
+ $text .= current($array);
+ unset($array[key($array)]);
}
$str .= $start . base64_encode($text) . $end . ' ';