Skip to content

Commit

Permalink
[BUGFIX] Make sure given parameter is of type int
Browse files Browse the repository at this point in the history
  • Loading branch information
thommyhh committed Sep 5, 2024
1 parent 94ea7ed commit cd53693
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/Controller/SelectImageController.php
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ protected function processImage(File $file, array $params, array $maxDimensions)
*/
protected function getMaxDimensions(array $params): array
{
$tsConfig = BackendUtility::getPagesTSconfig($params['pid'] ?? 0);
$tsConfig = BackendUtility::getPagesTSconfig((int) ($params['pid'] ?? 0));
$richtextConfigurationName = $params['richtextConfigurationName'] ?? 'default';
if ($richtextConfigurationName === '') {
$richtextConfigurationName = 'default';
Expand Down

0 comments on commit cd53693

Please sign in to comment.