mirror of
https://github.com/getgrav/grav.git
synced 2026-06-20 17:00:09 +02:00
FormFlash: Allow no field for file uploads
This commit is contained in:
@@ -354,7 +354,7 @@ class FormFlash implements \JsonSerializable
|
||||
* @param array $data
|
||||
* @param array|null $crop
|
||||
*/
|
||||
protected function addFileInternal(string $field, string $name, array $data, array $crop = null)
|
||||
protected function addFileInternal(?string $field, string $name, array $data, array $crop = null)
|
||||
{
|
||||
if (!isset($this->files[$field])) {
|
||||
$this->files[$field] = [];
|
||||
|
||||
Reference in New Issue
Block a user