From: Cyperghost Date: Wed, 26 Jun 2024 08:38:43 +0000 (+0200) Subject: Set array-key to the fileID X-Git-Tag: 6.1.0_Alpha_1~41^2~24 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=05ca8be53f8dc98ed3d038890b5000146f58760c;p=GitHub%2FWoltLab%2FWCF.git Set array-key to the fileID --- diff --git a/wcfsetup/install/files/lib/system/form/builder/field/FileProcessorFormField.class.php b/wcfsetup/install/files/lib/system/form/builder/field/FileProcessorFormField.class.php index a35bf4fa20..ed6e4a8f6f 100644 --- a/wcfsetup/install/files/lib/system/form/builder/field/FileProcessorFormField.class.php +++ b/wcfsetup/install/files/lib/system/form/builder/field/FileProcessorFormField.class.php @@ -123,7 +123,7 @@ final class FileProcessorFormField extends AbstractFormField if ($this->isSingleFileUpload()) { $file = new File($value); if ($file->fileID === $value) { - $this->files = [$file]; + $this->files = [$file->fileID => $file]; $fileIDs[] = $value; } else { $value = null;