Return if not an array, fixes #1940
git-svn-id: http://svn.automattic.com/wordpress/trunk@3217 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
5bb35ba138
commit
e8a4812526
|
@ -403,6 +403,9 @@ function _page_level_out($parent, $page_tree, $args, $depth = 0, $echo = true) {
|
|||
$indent = str_repeat("\t", $depth);
|
||||
//$indent = join('', array_fill(0,$depth,"\t"));
|
||||
|
||||
if ( !is_array($page_tree[$parent]['children']) )
|
||||
return false;
|
||||
|
||||
foreach ( $page_tree[$parent]['children'] as $page_id ) {
|
||||
$cur_page = $page_tree[$page_id];
|
||||
$title = $cur_page['title'];
|
||||
|
|
Loading…
Reference in New Issue