csv files without eof line work OK

This commit is contained in:
LautaroCesso 2022-02-17 17:29:45 -03:00
parent d24da281ff
commit 7996c933c6
1 changed files with 5 additions and 1 deletions

View File

@ -44,7 +44,11 @@ class CSVImportController extends Controller {
$user = fgetcsv($file);
while(!feof($file)) {
while($user != null) {
if($user == false) {
throw new RequestException("Error trying to read file");
}
Controller::setDataRequester(function ($key) use ($user) {
switch ($key) {
case 'email':