mirror of
https://github.com/phpbb/phpbb.git
synced 2025-05-07 16:15:22 +02:00
- Bug #1947
git-svn-id: file:///svn/phpbb/trunk@5961 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
484ecb9188
commit
28a306ae00
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user