mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-05 07:58:35 +01:00
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 = str_repeat("\t", $depth);
|
||||||
//$indent = join('', array_fill(0,$depth,"\t"));
|
//$indent = join('', array_fill(0,$depth,"\t"));
|
||||||
|
|
||||||
|
if ( !is_array($page_tree[$parent]['children']) )
|
||||||
|
return false;
|
||||||
|
|
||||||
foreach ( $page_tree[$parent]['children'] as $page_id ) {
|
foreach ( $page_tree[$parent]['children'] as $page_id ) {
|
||||||
$cur_page = $page_tree[$page_id];
|
$cur_page = $page_tree[$page_id];
|
||||||
$title = $cur_page['title'];
|
$title = $cur_page['title'];
|
||||||
|
Loading…
Reference in New Issue
Block a user