Added casting to array. If this is missing it can happen that the returned value is null.
This commit is contained in:
parent
f54dded1e0
commit
6544a72034
1 changed files with 1 additions and 1 deletions
|
@ -57,7 +57,7 @@ class ProgressViewHelper extends AbstractViewHelper
|
||||||
//handling famous off by one
|
//handling famous off by one
|
||||||
$activeStep -= $offset;
|
$activeStep -= $offset;
|
||||||
//make sure our array index is numeric
|
//make sure our array index is numeric
|
||||||
$links = \array_values($links);
|
$links = \array_values((array)$links);
|
||||||
if (!$linkCount) {
|
if (!$linkCount) {
|
||||||
$linkCount = \count($links);
|
$linkCount = \count($links);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue