Index: tokens.php =================================================================== --- tokens.php (revision 9887) +++ tokens.php (working copy) @@ -1622,6 +1622,10 @@ } if ($ctcount > $emcount) { + $i = 0; + while($i < $maxemails) + { array_shift($tokenids); $i++; } + $tids = '|'.implode('|',$tokenids); $lefttosend = $ctcount-$maxemails; $tokenoutput .= "\n" ."
".$clang->gT("Warning")."

\n" @@ -1634,7 +1638,8 @@ ."\n" ."\n" ."\n" - ."\n"; + ."\n" + ."\n"; foreach ($surveylangs as $language) { $message = html_escape($_POST['message_'.$language]);