From 0fec4c003bcf82199252eab2d1aef16041aa9bb2 Mon Sep 17 00:00:00 2001 From: Andy Miller Date: Fri, 5 Sep 2014 22:25:13 -0600 Subject: [PATCH] getList was returning nothing --- system/src/Grav/Common/Page/Pages.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/src/Grav/Common/Page/Pages.php b/system/src/Grav/Common/Page/Pages.php index 39a201d7a..39aa9d487 100644 --- a/system/src/Grav/Common/Page/Pages.php +++ b/system/src/Grav/Common/Page/Pages.php @@ -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)); }