this is what it looks like
Code:
// Send a PM to the rated user.
if ($userinfo['options'] & $vbulletin->bf_misc_useroptions['receivepm']) {
$vbphrase['itrader_pm_message_x'] = construct_phrase($vbphrase['itrader_pm_message'], $vbulletin->userinfo['username'], $vbulletin->options['bburl'], $itrader['rateid'], $userinfo['userid']);
$cantrackpm = $permissions['pmpermissions'] & $vbulletin->bf_ugp_pmpermissions['cantrackpm'];
$pmdm =& datamanager_init('PM', $vbulletin, ERRTYPE_ARRAY);
$pmdm->set('fromuserid', $vbulletin->userinfo['userid']);
$pmdm->set('fromusername', $vbulletin->userinfo['username']);
$pmdm->set('title', $vbphrase['itrader_pm_subject']);
$pmdm->set('message', $vbphrase['itrader_pm_message_x']);
$pmdm->set_recipients($userinfo['username'], $permissions);
$pmdm->set('dateline', TIMENOW);
$pmdm->set_info('receipt',1);
$pmdm->set_info('cantrackpm', $cantrackpm);
$pmdm->save();
}
if that is correct, it does not work, i still get the fatal error