Um I have the below code in a cron job, and when it runs Im getting this error:
PHP Code:
Fatal error: Unable to proceed with save while $errors array is not empty in class vb_datamanager_pm in /includes/class_dm.php on line 758
Code:
// Fetch the PM message
if ($vbulletin->options['ptp_pm_on_off'] == '1')
{
$ptp_pm =
construct_phrase(
$vbphrase['ptp_alertpm'],
$pquery['username'],
);
// Send a PM to user(s)
$pmdm =& datamanager_init('PM', $vbulletin, ERRTYPE_ARRAY);
$pmdm->set('fromuserid', 6);
$pmdm->set('fromusername', 'JonB');
$pmdm->set('title', 'Crap');
$pmdm->overridequota = true;
$pmdm->set('message', 'test');
$pmdm->set_recipients($pquery['username'], $botpermissions);
$pmdm->set('dateline', TIMENOW);
$pmdm->save();
}
Whats wrong here? I think it worked before now all of a sudden doesnt... (I think) :cross-eyed: