Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MDL-26234 fix fatal user upload error when custom text area field pre…

…sent

Please note this does not fix problems with the actual upload of custon text area fields.
  • Loading branch information...
commit bb98eea1145b6bc1f98db416d10af59bafefdc86 1 parent 54b7b59
@skodak skodak authored
Showing with 7 additions and 1 deletion.
  1. +7 −1 admin/uploaduser.php
View
8 admin/uploaduser.php
@@ -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);
+ }
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.