mirror of
https://github.com/moodle/moodle.git
synced 2025-05-16 05:00:01 +02:00
MDL-14679 fixed regression
This commit is contained in:
parent
e222eb89b2
commit
5849cfe28d
@ -351,7 +351,7 @@ function profile_validation($usernew, $files) {
|
||||
function profile_save_data($usernew) {
|
||||
global $CFG, $DB;
|
||||
|
||||
if ($fields = $DB->get_records_select('user_info_field')) {
|
||||
if ($fields = $DB->get_records('user_info_field')) {
|
||||
foreach ($fields as $field) {
|
||||
require_once($CFG->dirroot.'/user/profile/field/'.$field->datatype.'/field.class.php');
|
||||
$newfield = 'profile_field_'.$field->datatype;
|
||||
|
Loading…
x
Reference in New Issue
Block a user