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:
matt 2005-11-28 06:38:12 +00:00
parent 5bb35ba138
commit e8a4812526
1 changed files with 3 additions and 0 deletions

View File

@ -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'];