|
@@ -121,6 +121,13 @@ function AdminRegister()
|
|
|
$memberID = registerMember($regOptions);
|
|
|
if (!empty($memberID))
|
|
|
{
|
|
|
+ // We'll do custom fields after as then we get to use the helper function!
|
|
|
+ if (!empty($_POST['customfield']))
|
|
|
+ {
|
|
|
+ require_once($sourcedir . '/Profile-Modify.php');
|
|
|
+ makeCustomFieldChanges($memberID, 'register');
|
|
|
+ }
|
|
|
+
|
|
|
$context['new_member'] = array(
|
|
|
'id' => $memberID,
|
|
|
'name' => $_POST['user'],
|