Skip to content

Commit

Permalink
Closes #31
Browse files Browse the repository at this point in the history
  • Loading branch information
Eworm committed Jul 30, 2019
1 parent 9d3f709 commit d58ede3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion BigKahuna/BigKahunaTags.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ public function getChildActiveStatus($page, $actual_link)
foreach ($page['items'] as $child) {
$child_content = Content::find($child['id']);

if ($child_content->absoluteUrl() == $actual_link) {
if ($child_content && $child_content->absoluteUrl() == $actual_link) {
return true;
} else {
return $this->getChildActiveStatus($child, $actual_link);
Expand Down

0 comments on commit d58ede3

Please sign in to comment.