Permalink
Browse files

Fixed bug in setting optionalDefaults outside the main loop

  • Loading branch information...
fiedorow
fiedorow committed Jan 6, 2004
1 parent e38015f commit 748fd535fe6a74d357e3c7be1fa53e1f4bbf0133
Showing with 4 additions and 5 deletions.
  1. +4 −5 admin/uploaduser.php
View
@@ -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

0 comments on commit 748fd53

Please sign in to comment.