mirror of
https://github.com/getgrav/grav.git
synced 2026-03-01 10:01:26 +01:00
FlexObject: Fixed a bug when updating media
This commit is contained in:
@@ -256,7 +256,7 @@ trait FlexMediaTrait
|
||||
{
|
||||
$list = [];
|
||||
foreach ($files as $field => $group) {
|
||||
if (\strpos($field, '/', true)) {
|
||||
if ($field === '' || \strpos($field, '/', true)) {
|
||||
continue;
|
||||
}
|
||||
foreach ($group as $filename => $file) {
|
||||
|
||||
Reference in New Issue
Block a user