Skip to content

Commit

Permalink
[BUGFIX] Don't force arrays when json_encoding parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
Tuurlijk committed Sep 28, 2021
1 parent 8deb716 commit 364039c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Classes/Domain/Model/Content.php
Original file line number Diff line number Diff line change
Expand Up @@ -197,9 +197,7 @@ public function updateFromContentData(array $contentData, Library $library)
}

if (isset($contentData['params'])) {
// Yes, twice. they added metadata later and didnt rename the top level.
$parameters = json_decode($contentData['params'], true);
$this->setParameters(json_encode($parameters));
$this->setParameters($contentData['params']);

// "H5P Metadata"
$this->setTitle(html_entity_decode($contentData['metadata']->title));
Expand Down

0 comments on commit 364039c

Please sign in to comment.