From e8ea04f32339b84a295e20d35a70944e00b06eef Mon Sep 17 00:00:00 2001 From: Christian Krause Date: Tue, 23 May 2023 17:40:07 +0200 Subject: [PATCH] Fix for iterator arguments --- Classes/ViewHelpers/ProgressViewHelper.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Classes/ViewHelpers/ProgressViewHelper.php b/Classes/ViewHelpers/ProgressViewHelper.php index 20ac46b..3cae5fb 100644 --- a/Classes/ViewHelpers/ProgressViewHelper.php +++ b/Classes/ViewHelpers/ProgressViewHelper.php @@ -57,6 +57,9 @@ class ProgressViewHelper extends AbstractViewHelper //handling famous off by one $activeStep -= $offset; //make sure our array index is numeric + if (\is_iterable($links)) { + $links = \iterator_to_array($links); + } $links = \array_values($links); if (!$linkCount) { $linkCount = \count($links);