Skip to content
Snippets Groups Projects
Commit ac88689f authored by Georg Ringer's avatar Georg Ringer Committed by Wouter Wolters
Browse files

[BUGFIX] Validate column count before using it

Fix a regression introduced with #84338 to check the column count
first before using it.

Resolves: #84491
Releases: master
Change-Id: I7dbfc7f59a3e79bc69ddbca946888f86d96f5fed
Reviewed-on: https://review.typo3.org/56680


Tested-by: default avatarTYPO3com <no-reply@typo3.com>
Reviewed-by: default avatarMathias Schreiber <mathias.schreiber@typo3.com>
Tested-by: default avatarMathias Schreiber <mathias.schreiber@typo3.com>
Reviewed-by: default avatarKay Strobach <typo3@kay-strobach.de>
Tested-by: default avatarKay Strobach <typo3@kay-strobach.de>
Reviewed-by: default avatarWouter Wolters <typo3@wouterwolters.nl>
Tested-by: default avatarWouter Wolters <typo3@wouterwolters.nl>
parent ba6fa129
Branches
Tags
No related merge requests found
......@@ -493,7 +493,8 @@ class TableController extends AbstractWizardController
$configuration = $this->configurationStringToArray($configuration, 0);
} else {
// Regular line based table configuration:
$configuration = $this->configurationStringToArray($row[$this->P['field']], $row[$this->colsFieldName]);
$columns = $row[$this->colsFieldName] ?? 0;
$configuration = $this->configurationStringToArray($row[$this->P['field']], $columns);
}
}
$configuration = is_array($configuration) ? $configuration : [];
......
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