
Tony Fugere - 2006-03-25 20:33:50
Change the code in function register to the reflect this:
$sql = "INSERT INTO " . USER_GROUP_TABLE . " (user_id, group_id, user_pending) VALUES ('".$id."', '".$id."', 0)";
$db->sql_query($sql);
$sql = "INSERT INTO " . GROUPS_TABLE . " (group_id, group_type, group_description, group_moderator, group_single_user) VALUES ('".$id."', 1, 'Personal User', 0, 1)";
$db->sql_query($sql);
This will insert the Users' group information properly such that deleting users from the Admin Control Panel will not fail.