Commit 4cc6cdcb authored by Tino Goratsch's avatar Tino Goratsch

quick fix for a possible PHP warning

parent 145f72a8
......@@ -212,7 +212,7 @@ class Steps
{
if ($dbSteps === false) {
end($this->steps);
$this->steps[key($this->steps)] = $this->buildStepItem($title, $path);
$this->steps[(int)key($this->steps)] = $this->buildStepItem($title, $path);
}
return $this;
......
......@@ -94,7 +94,7 @@ class Steps extends Core\Breadcrumb\Steps
{
if ($dbSteps === true) {
end($this->stepsFromDb);
$this->stepsFromDb[key($this->stepsFromDb)] = $this->buildStepItem($title, $path);
$this->stepsFromDb[(int)key($this->stepsFromDb)] = $this->buildStepItem($title, $path);
}
return parent::replaceAncestor($title, $path, $dbSteps);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment