projects
/
yaffs-website
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Security update for Core, with self-updated composer
[yaffs-website]
/
web
/
core
/
modules
/
file
/
file.module
diff --git
a/web/core/modules/file/file.module
b/web/core/modules/file/file.module
index 6902db6812bb50940a1d445bf45eb8b2eab709a4..b08fad53e0da42b7c7721df47163f7c62b71b0a6 100644
(file)
--- a/
web/core/modules/file/file.module
+++ b/
web/core/modules/file/file.module
@@
-1208,7
+1208,9
@@
function file_managed_file_save_upload($element, FormStateInterface $form_state)
// Value callback expects FIDs to be keys.
$files = array_filter($files);
// Value callback expects FIDs to be keys.
$files = array_filter($files);
- $fids = array_map(function($file) { return $file->id(); }, $files);
+ $fids = array_map(function ($file) {
+ return $file->id();
+ }, $files);
return empty($files) ? [] : array_combine($fids, $files);
}
return empty($files) ? [] : array_combine($fids, $files);
}