Skip to content

Commit

Permalink
Merge pull request #4 from sleeping-owl/patch-1
Browse files Browse the repository at this point in the history
Фикс ошибки передачи по ссылке результата вызова функции
  • Loading branch information
butschster authored Jun 5, 2017
2 parents 4ad896a + 0f835dc commit 6a70768
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Section.php
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,8 @@ public function addPages(array $pages)
$section->addPages($page['children']);
}
} else {
$this->addPage(new Page($page));
$newPage = new Page($page)
$this->addPage($newPage);
}
}

Expand Down

0 comments on commit 6a70768

Please sign in to comment.