I get an error when this code runs:
Quote:
Fatal error:
* A required field called username is missing or has an invalid value.
Unable to proceed with save while $errors array is not empty in class vB_DataManager_User in [path]/includes/class_dm.php on line 849
|
The code I'm using is:
Code:
$userdata =& datamanager_init('User', $vbulletin, ERRTYPE_ARRAY);
$userdata->set('usergroupid', $new_group);
$userdata->save();
which is what I copied from your post. Any idea as to why it's throwing that error?