Fixed bug in setting optionalDefaults outside the main loop

This commit is contained in:
fiedorow 2004-01-06 20:25:12 +00:00
parent e38015fe92
commit 748fd535fe

View File

@ -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 &#44
foreach ($optionalDefaults as $key => $value) {
$user->$key = $adminuser->$key;
}
//Note: commas within a field should be encoded as &#44
$line = split("\,", fgets($fp,1024));
foreach ($line as $key => $value) {
//decode encoded commas