The PM Workbench to field shows "array" when looking at pm's. So I have taken the code from vbulletin's private.php file and added to the specific file as per below:
admincp/mh_pmwbrd.php
replace
HTML Code:
while ($pm = $vbulletin->db->fetch_array($pms))
{
$pmrow = array(
"<a href=\"mh_pmwbrd.php?do=readpmtext&pmtextid=$pm[pmtextid]\">$pm[title]</a>"
, $pm['fromusername']
, (is_array(unserialize($pm['touserarray'])) ? implode(", ", array_values(unserialize($pm['touserarray']))) : null)
, vbdate($vbulletin->options['dateformat'] . ', ' . $vbulletin->options['timeformat'], $pm['dateline'])
, "<input type=\"checkbox\" name=\"action[" . $pm['pmtextid'] . "]\">"
);
print_cells_row($pmrow);
}
with
HTML Code:
while ($pm = $vbulletin->db->fetch_array($pms))
{
$cclist = array();
$bcclist = array();
$touser = unserialize($pm['touserarray']);
foreach($touser AS $key => $item)
{
if (is_array($item))
{
foreach($item AS $subkey => $subitem)
{
${$key.'list'}[]=$subitem;
}
}
else
{
$bcclist[]=$item;
}
}
$pmrow = array(
"<a href=\"mh_pmwbrd.php?do=readpmtext&pmtextid=$pm[pmtextid]\">$pm[title]</a>"
, $pm['fromusername']
, implode(", ",$bcclist).implode(", ",$cclist)
, vbdate($vbulletin->options['dateformat'] . ', ' . $vbulletin->options['timeformat'], $pm['dateline'])
, "<input type=\"checkbox\" name=\"action[" . $pm['pmtextid'] . "]\">"
);
print_cells_row($pmrow);
}