Skip to content

Commit

Permalink
Detect if $object->get('fields') is an array
Browse files Browse the repository at this point in the history
fixes #128
  • Loading branch information
matdave authored Dec 27, 2024
1 parent 2596e5e commit 9717226
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/components/versionx/migrate.php
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ function mergeTVs($object): array
}

return array_merge(
$object->get('fields'),
!empty($object->get('fields')) ? $object->get('fields') : [],
['content' => $object->get('content')],
$tvs,
);
Expand Down

0 comments on commit 9717226

Please sign in to comment.