Skip to content

Commit

Permalink
Merge pull request #62 from b13/bugfix/issue-56
Browse files Browse the repository at this point in the history
[BUGFIX] cast to string
  • Loading branch information
achimfritz authored Jun 26, 2024
2 parents 5d74a5a + 6fe430a commit 695185a
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 695185a

Please sign in to comment.