From 748fd535fe6a74d357e3c7be1fa53e1f4bbf0133 Mon Sep 17 00:00:00 2001 From: fiedorow Date: Tue, 6 Jan 2004 20:25:12 +0000 Subject: [PATCH] Fixed bug in setting optionalDefaults outside the main loop --- admin/uploaduser.php | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/admin/uploaduser.php b/admin/uploaduser.php index dad874044be..1b2db12db85 100755 --- a/admin/uploaduser.php +++ b/admin/uploaduser.php @@ -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