aboutsummaryrefslogtreecommitdiff
path: root/mod/profile/actions/edit.php
diff options
context:
space:
mode:
authorben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-08-17 14:37:32 +0000
committerben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-08-17 14:37:32 +0000
commit2aafbdfb2cea7b8fc7daeb60ccfbb7f6357f77e5 (patch)
tree9780ae3e5db25004ed238d67e1d700652724682e /mod/profile/actions/edit.php
parent2d3f252989e6dd46dda1ee576dd0720877dc68ff (diff)
downloadelgg-2aafbdfb2cea7b8fc7daeb60ccfbb7f6357f77e5.tar.gz
elgg-2aafbdfb2cea7b8fc7daeb60ccfbb7f6357f77e5.tar.bz2
Ensuring that tags are saved correctly in profile
git-svn-id: https://code.elgg.org/elgg/trunk@1980 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/profile/actions/edit.php')
-rw-r--r--mod/profile/actions/edit.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/mod/profile/actions/edit.php b/mod/profile/actions/edit.php
index c3673e4e6..36f13eb42 100644
--- a/mod/profile/actions/edit.php
+++ b/mod/profile/actions/edit.php
@@ -47,8 +47,11 @@
$access_id = 0;
}
if (is_array($value)) {
+ $i = 0;
foreach($value as $interval) {
- create_metadata($user->guid, $shortname, $interval, 'text', $user->guid, $access_id, true);
+ $i++;
+ if ($i == 1) { $multiple = false; } else { $multiple = true; }
+ create_metadata($user->guid, $shortname, $interval, 'text', $user->guid, $access_id, $multiple);
}
} else {
create_metadata($user->guid, $shortname, $value, 'text', $user->guid, $access_id);