Skip to content

Commit

Permalink
MDL-26234 fix fatal user upload error when custom text area field pre…
Browse files Browse the repository at this point in the history
…sent

Please note this does not fix problems with the actual upload of custon text area fields.
  • Loading branch information
skodak committed Feb 6, 2011
1 parent 54b7b59 commit bb98eea
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion admin/uploaduser.php
Expand Up @@ -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);
}
}
}

Expand Down

0 comments on commit bb98eea

Please sign in to comment.