Skip to content

Commit e93edfa

Browse files
Merge pull request #21 from komakino/patch-1
Fixes variable leak
2 parents aa3df7e + 35dee07 commit e93edfa

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/Presentation/ActiveStateChecker.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ class ActiveStateChecker
1515
public function isActive(Item $item)
1616
{
1717
// Check if one of the children is active
18-
foreach ($item->getItems() as $item) {
19-
if ($this->isActive($item)) {
18+
foreach ($item->getItems() as $child) {
19+
if ($this->isActive($child)) {
2020
return true;
2121
}
2222
}

0 commit comments

Comments
 (0)