Commit 936bb29c authored by Oliver Bartsch's avatar Oliver Bartsch Committed by Christian Kuhn
Browse files

[BUGFIX] Prevent TypeError in TableController

Prevent a possible TypeError in TableController by
casting the input argument to string.

Resolves: #94446
Releases: master, 10.4
Change-Id: I208123f542ca6cf34db51889138fb626da0deb41
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/69831


Tested-by: core-ci's avatarcore-ci <typo3@b13.com>
Tested-by: Jochen's avatarJochen <rothjochen@gmail.com>
Tested-by: Christian Kuhn's avatarChristian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: Jochen's avatarJochen <rothjochen@gmail.com>
Reviewed-by: Christian Kuhn's avatarChristian Kuhn <lolli@schwarzbu.ch>
parent 048d2957
......@@ -322,11 +322,11 @@ class TableController extends AbstractWizardController
$this->P['flexFormPath'],
$currentFlexFormData
);
$configuration = $this->configurationStringToArray($configuration, 0);
$configuration = $this->configurationStringToArray((string)$configuration, 0);
} else {
// Regular line based table configuration:
$columns = $row[$this->colsFieldName] ?? 0;
$configuration = $this->configurationStringToArray($row[$this->P['field']] ?? '', (int)$columns);
$configuration = $this->configurationStringToArray((string)($row[$this->P['field']] ?? ''), (int)$columns);
}
}
$configuration = is_array($configuration) ? $configuration : [];
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment