mirror of
https://github.com/getgrav/grav.git
synced 2026-04-12 23:57:36 +02: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