- $gcontact = array("url" => $profile_url, "contact-type" => $contact_type, "generation" => $generation);
- update_gcontact($gcontact);
+ $gcontact = array("url" => $profile_url,
+ "name" => $name,
+ "network" => $network,
+ "photo" => $profile_photo,
+ "about" => $about,
+ "location" => $location,
+ "gender" => $gender,
+ "keywords" => $keywords,
+ "connect" => $connect_url,
+ "updated" => $updated,
+ "contact-type" => $contact_type,
+ "generation" => $generation);
+
+ try {
+ $gcontact = sanitize_gcontact($gcontact);
+ update_gcontact($gcontact);
+ } catch (Exception $e) {
+ logger($e->getMessage(), LOGGER_DEBUG);
+ }