getList was returning nothing

This commit is contained in:
Andy Miller
2014-09-05 22:25:13 -06:00
parent 80d08eace7
commit 0fec4c003b

View File

@@ -300,7 +300,7 @@ class Pages
$list[$current->route()] = str_repeat('  ', ($level-1)*2) . $current->title();
}
foreach ($current as $next) {
foreach ($current->children() as $next) {
$list = array_merge($list, $this->getList($next, $level + 1));
}