Skip to content

Commit

Permalink
[BUGFIX] cast to string
Browse files Browse the repository at this point in the history
Fixes: #56
  • Loading branch information
achimfritz committed Jun 26, 2024
1 parent 5d74a5a commit 6fe430a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/ViewHelpers/ImageViewHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ protected function buildVariantsIfNeeded(array $configuration, FileInterface $im
if (!empty($configuration['variants'])) {
$processingInstructions = $this->getProcessingInstructions($configuration, $image);
$ratio = null;
$variants = GeneralUtility::intExplode(',', $configuration['variants']);
$variants = GeneralUtility::intExplode(',', (string)$configuration['variants']);
sort($variants);
// determine the ratio
if (!empty($configuration['width']) && !empty($configuration['height'])) {
Expand Down

0 comments on commit 6fe430a

Please sign in to comment.