Return empty array instead of null. Props Denis-de-Bernardy. fixes #11661 for trunk

git-svn-id: http://svn.automattic.com/wordpress/trunk@12571 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2009-12-29 21:11:18 +00:00
parent 880ce66f34
commit 309afc8ad3
1 changed files with 1 additions and 1 deletions

View File

@ -2401,7 +2401,7 @@ function &get_page_children($page_id, $pages) {
function &get_page_hierarchy( &$pages, $page_id = 0 ) {
if ( empty( $pages ) ) {
$result = null;
$result = array();
return $result;
}