From 309afc8ad3aad2f22b5d5a844bd2bcbe4085684f Mon Sep 17 00:00:00 2001 From: ryan Date: Tue, 29 Dec 2009 21:11:18 +0000 Subject: [PATCH] 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 --- wp-includes/post.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/post.php b/wp-includes/post.php index f62183006f..a76ec59baa 100644 --- a/wp-includes/post.php +++ b/wp-includes/post.php @@ -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; }