Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions Classes/Service/FlexFormService.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,13 @@ class FlexFormService extends AbstractService
protected array $flexFormData = [];

/**
* oad the given flex form into the service.
* Load the given flex form into the service.
*/
public function load(string $xml): void
public function load(?string $xml): void
{
$this->flexFormData = GeneralUtility::xml2array($xml);
if (isset($xml)) {
$this->flexFormData = GeneralUtility::xml2array($xml);
}
}

/**
Expand Down
Loading