| @@ 385-391 (lines=7) @@ | ||
| 382 | } |
|
| 383 | } |
|
| 384 | ||
| 385 | if (is_array($users)) { |
|
| 386 | foreach ($users as $my_user) { |
|
| 387 | if (!in_array($my_user[$keyToCheck], $user_id_error)) { |
|
| 388 | $users_to_insert[] = $my_user; |
|
| 389 | } |
|
| 390 | } |
|
| 391 | } |
|
| 392 | ||
| 393 | $inserted_in_course = array(); |
|
| 394 | if (strcmp($file_type, 'csv') === 0) { |
|
| @@ 377-383 (lines=7) @@ | ||
| 374 | } |
|
| 375 | } |
|
| 376 | ||
| 377 | if (is_array($users)) { |
|
| 378 | foreach ($users as $my_user) { |
|
| 379 | if (!in_array($my_user['UserName'], $user_id_error)) { |
|
| 380 | $users_to_insert[] = $my_user; |
|
| 381 | } |
|
| 382 | } |
|
| 383 | } |
|
| 384 | ||
| 385 | $inserted_in_course = array(); |
|
| 386 | if (strcmp($file_type, 'csv') === 0) { |
|