From c9d4cf5b0b0f5ad3056cd4d6dc744a8b4890fb4e Mon Sep 17 00:00:00 2001 From: brettp Date: Mon, 14 Feb 2011 03:40:59 +0000 Subject: Updated trunk to use new annotation functions. Added checks for annotations_* options vs annotation_* options because it's so easy to confuse. git-svn-id: http://code.elgg.org/elgg/trunk@8223 36083f99-b078-4883-b0ff-0f9b5a30f544 --- actions/profile/edit.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'actions/profile/edit.php') diff --git a/actions/profile/edit.php b/actions/profile/edit.php index 260f2aba9..e86053b07 100644 --- a/actions/profile/edit.php +++ b/actions/profile/edit.php @@ -74,7 +74,11 @@ if ($name) { // go through custom fields if (sizeof($input) > 0) { foreach ($input as $shortname => $value) { - remove_metadata($owner->guid, $shortname); + $options = array( + 'guid' => $owner->guid, + 'metadata_name' => $shortname + ); + elgg_delete_metadata($options); if (isset($accesslevel[$shortname])) { $access_id = (int) $accesslevel[$shortname]; } else { -- cgit v1.2.3