+ // jan-2013 with improvements in plcapi-5.1-6 about managing persons and tags,
+ // AddPerson has gone more picky and we need to remove some fields
+ // that no longer are silently ignored by AddPerson
+ $site_ids=$person['site_ids'];
+ unset ($person['site_ids']);
+ $roles=$person['roles'];
+ unset ($person['roles']);
+
+ $person_id = $adm->AddPerson($person);
+ $errors = errors_record ($adm,$errors);
+
+ if (empty($errors)) {