diff --git a/typo3/sysext/backend/Classes/Controller/Wizard/TableController.php b/typo3/sysext/backend/Classes/Controller/Wizard/TableController.php index 4febd5f74ddedaf0d7473bb6c00ef0f788aae7d7..32701eda7c14492b3f6a0261649b49399ba8aeaa 100644 --- a/typo3/sysext/backend/Classes/Controller/Wizard/TableController.php +++ b/typo3/sysext/backend/Classes/Controller/Wizard/TableController.php @@ -449,7 +449,7 @@ class TableController extends AbstractWizardController $bodyText = $this->configurationArrayToString($this->TABLECFG['c']); // Create cfgArr from the string based configuration - that way it is cleaned up // and any incompatibilities will be removed! - $configuration = $this->configurationStringToArray($bodyText, $row[$this->colsFieldName]); + $configuration = $this->configurationStringToArray($bodyText, (int)$row[$this->colsFieldName]); } // If a save button has been pressed, then save the new field content: if ($_POST['_savedok'] || $_POST['_saveandclosedok']) { @@ -494,7 +494,7 @@ class TableController extends AbstractWizardController } else { // Regular line based table configuration: $columns = $row[$this->colsFieldName] ?? 0; - $configuration = $this->configurationStringToArray($row[$this->P['field']], $columns); + $configuration = $this->configurationStringToArray($row[$this->P['field']], (int)$columns); } } $configuration = is_array($configuration) ? $configuration : [];