|
@@ 4773-4783 (lines=11) @@
|
| 4770 |
|
$fileCount = count($_FILES['user_upload']['name']); |
| 4771 |
|
$filesData = []; |
| 4772 |
|
|
| 4773 |
|
if (!is_array($_FILES['user_upload']['name'])) { |
| 4774 |
|
$filesData[] = $_FILES['user_upload']; |
| 4775 |
|
} else { |
| 4776 |
|
$fileKeys = array_keys($_FILES['user_upload']); |
| 4777 |
|
for ($i = 0; $i < $fileCount; $i++) { |
| 4778 |
|
foreach ($fileKeys as $key) { |
| 4779 |
|
$filesData[$i][$key] = $_FILES['user_upload'][$key][$i]; |
| 4780 |
|
} |
| 4781 |
|
} |
| 4782 |
|
} |
| 4783 |
|
|
| 4784 |
|
foreach ($filesData as $attachment) { |
| 4785 |
|
if (empty($attachment['name'])) { |
| 4786 |
|
continue; |
|
@@ 4863-4873 (lines=11) @@
|
| 4860 |
|
$fileCount = count($_FILES['user_upload']['name']); |
| 4861 |
|
$filesData = []; |
| 4862 |
|
|
| 4863 |
|
if (!is_array($_FILES['user_upload']['name'])) { |
| 4864 |
|
$filesData[] = $_FILES['user_upload']; |
| 4865 |
|
} else { |
| 4866 |
|
$fileKeys = array_keys($_FILES['user_upload']); |
| 4867 |
|
|
| 4868 |
|
for ($i = 0; $i < $fileCount; $i++) { |
| 4869 |
|
foreach ($fileKeys as $key) { |
| 4870 |
|
$filesData[$i][$key] = $_FILES['user_upload'][$key][$i]; |
| 4871 |
|
} |
| 4872 |
|
} |
| 4873 |
|
} |
| 4874 |
|
|
| 4875 |
|
foreach ($filesData as $attachment) { |
| 4876 |
|
if (empty($attachment['name'])) { |