Skip to content

Commit

Permalink
fix broken parser
Browse files Browse the repository at this point in the history
  • Loading branch information
beheh committed Jan 25, 2015
1 parent b0d1c67 commit d697454
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Parser.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ protected function completeSection(Response $response, $mindepth) {
unset($this->stack[$depth]);
}
if($merge) {
if($mindepth !== null) {
if($mindepth != 0) {
throw new \Exception('found child ('.$merge->getHeading().') without parent at depth '.$mindepth);
}
$response->addSection($merge);
Expand Down

0 comments on commit d697454

Please sign in to comment.