Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
butschster committed Dec 28, 2015
2 parents f21ab0d + b49ba77 commit 8be3f5b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Section.php
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ public function findActivePageByUri($currentUri)
$len += strlen($siteUrl);
}

if(! empty($url)) {
if (! empty($url)) {
$uri = substr($currentUri, $len);
$pos = strpos($uri, $url);

Expand All @@ -218,7 +218,7 @@ public function findActivePageByUri($currentUri)
}
}

if(count($foundPages) > 0) {
if (count($foundPages) > 0) {
ksort($foundPages);
$page = array_shift($foundPages);
$this->navigation->setCurrentPage($page);
Expand Down

0 comments on commit 8be3f5b

Please sign in to comment.