@@ 4639-4649 (lines=11) @@ | ||
4636 | ||
4637 | $filesData = []; |
|
4638 | ||
4639 | if (!is_array($_FILES['user_upload']['name'])) { |
|
4640 | $filesData[] = $_FILES['user_upload']; |
|
4641 | } else { |
|
4642 | $fileKeys = array_keys($_FILES['user_upload']); |
|
4643 | ||
4644 | for ($i = 0; $i < $fileCount; $i++) { |
|
4645 | foreach ($fileKeys as $key) { |
|
4646 | $filesData[$i][$key] = $_FILES['user_upload'][$key][$i]; |
|
4647 | } |
|
4648 | } |
|
4649 | } |
|
4650 | ||
4651 | foreach ($filesData as $attachment) { |
|
4652 | if (empty($attachment['name'])) { |
|
@@ 4731-4741 (lines=11) @@ | ||
4728 | ||
4729 | $filesData = []; |
|
4730 | ||
4731 | if (!is_array($_FILES['user_upload']['name'])) { |
|
4732 | $filesData[] = $_FILES['user_upload']; |
|
4733 | } else { |
|
4734 | $fileKeys = array_keys($_FILES['user_upload']); |
|
4735 | ||
4736 | for ($i = 0; $i < $fileCount; $i++) { |
|
4737 | foreach ($fileKeys as $key) { |
|
4738 | $filesData[$i][$key] = $_FILES['user_upload'][$key][$i]; |
|
4739 | } |
|
4740 | } |
|
4741 | } |
|
4742 | ||
4743 | foreach ($filesData as $attachment) { |
|
4744 | if (empty($attachment['name'])) { |