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

git-svn-id: https://develop.svn.wordpress.org/trunk@12571 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2009-12-29 21:11:18 +00:00
parent 5459a227a8
commit 36272e0c33

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;
}