Permalink
Browse files

Merge branch 'w06_MDL-26234_20_customfields' of git://github.com/skod…

…ak/moodle
  • Loading branch information...
2 parents 9beb04e + bb98eea commit 5df4947cb8df8dedf6b40d37e0edccf4d0e9a8b8 @stronk7 stronk7 committed Feb 7, 2011
Showing with 7 additions and 1 deletion.
  1. +7 −1 admin/uploaduser.php
View
@@ -295,7 +295,13 @@
}
if (isset($formdata->$field)) {
// process templates
- $user->$field = process_template($formdata->$field, $user);
+ if (is_array($formdata->$field)) {
+ foreach ($formdata->$field as $k=>$v) {
+ $user->$field[$k] = process_template($v, $user);
+ }
+ } else {
+ $user->$field = process_template($formdata->$field, $user);
+ }
}
}

0 comments on commit 5df4947

Please sign in to comment.