| @@ 191-201 (lines=11) @@ | ||
| 188 | if (!empty($files)) { |
|
| 189 | $value = []; |
|
| 190 | foreach ($files as $k => $file) { |
|
| 191 | if (!is_integer($k)) { |
|
| 192 | unset($files[$k]); |
|
| 193 | continue; |
|
| 194 | } else { |
|
| 195 | $file = array_merge([ |
|
| 196 | 'mime_icon' => '', |
|
| 197 | 'file_name' => '', |
|
| 198 | 'file_size' => '', |
|
| 199 | 'description' => '', |
|
| 200 | ], (array)$file); |
|
| 201 | } |
|
| 202 | $value[] = trim("{$file['file_name']} {$file['description']}"); |
|
| 203 | } |
|
| 204 | $field->set('value', implode(' ', $value)); |
|
| @@ 193-204 (lines=12) @@ | ||
| 190 | if (!empty($files)) { |
|
| 191 | $value = []; |
|
| 192 | foreach ($files as $k => $file) { |
|
| 193 | if (!is_integer($k)) { |
|
| 194 | unset($files[$k]); |
|
| 195 | continue; |
|
| 196 | } else { |
|
| 197 | $file = array_merge([ |
|
| 198 | 'mime_icon' => '', |
|
| 199 | 'file_name' => '', |
|
| 200 | 'file_size' => '', |
|
| 201 | 'title' => '', |
|
| 202 | 'alt' => '', |
|
| 203 | ], (array)$file); |
|
| 204 | } |
|
| 205 | $value[] = trim("{$file['file_name']} {$file['title']} {$file['alt']}"); |
|
| 206 | } |
|
| 207 | $field->set('value', implode(' ', $value)); |
|