1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-05-07 16:15:22 +02:00
git-svn-id: file:///svn/phpbb/trunk@5961 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
David M 2006-05-22 19:58:53 +00:00
parent 484ecb9188
commit 28a306ae00

View File

@ -303,18 +303,19 @@ function view_folder($id, $mode, $folder_id, $folder)
$string = '';
foreach ($data as $value)
{
$recipients = $value['to'];
$value['to'] = $value['bcc'] = '';
$value['bcc'] = '';
if (is_array($value['to']))
if (is_array($recipients))
{
foreach ($value['to'] as $key => $values)
foreach ($recipients as $values)
{
if (!empty($values['bcc']) && is_array($values['bcc']))
{
$value['bcc'] = implode(',', $values['bcc']);
}
$value['to'] = implode(',', $values['to']);
$value['bcc'] .= (isset($values['bcc']) && is_array($values['bcc'])) ? ',' . implode(',', $values['bcc']) : '';
$value['to'] .= (isset($values['to']) && is_array($values['to'])) ? ',' . implode(',', $values['to']) : '';
}
// Remove the commas which will appear before the first entry.
$value['to'] = substr($value['to'], 1);
$value['bcc'] = substr($value['bcc'], 1);
}
foreach ($value as $tag => $text)