mirror of
https://github.com/moodle/moodle.git
synced 2025-03-14 04:30:15 +01:00
Fixed bug in setting optionalDefaults outside the main loop
This commit is contained in:
parent
e38015fe92
commit
748fd535fe
@ -111,12 +111,11 @@
|
||||
}
|
||||
$linenum = 2; // since header is line 1
|
||||
|
||||
foreach ($optionalDefaults as $key => $value) {
|
||||
$user->$key = $adminuser->$key;
|
||||
}
|
||||
|
||||
while (!feof ($fp)) {
|
||||
//Note: commas within a field should be encoded as ,
|
||||
foreach ($optionalDefaults as $key => $value) {
|
||||
$user->$key = $adminuser->$key;
|
||||
}
|
||||
//Note: commas within a field should be encoded as ,
|
||||
$line = split("\,", fgets($fp,1024));
|
||||
foreach ($line as $key => $value) {
|
||||
//decode encoded commas
|
||||
|
Loading…
x
Reference in New Issue
Block a user