Skip to content
This repository has been archived by the owner on Jan 30, 2020. It is now read-only.

Commit

Permalink
Add to check valid
Browse files Browse the repository at this point in the history
  • Loading branch information
noopable authored and Ocramius committed Nov 22, 2014
1 parent 83d584d commit f63debe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/AbstractContainer.php
Expand Up @@ -484,7 +484,7 @@ public function valid()
*/
public function hasChildren()
{
return $this->current()->hasPages();
return ($this->valid() && $this->current()->hasPages());
}

/**
Expand Down

0 comments on commit f63debe

Please sign in to comment.