From f83b446117aa83cf5b5116f18beefb2696da51f1 Mon Sep 17 00:00:00 2001 From: westi Date: Wed, 23 Dec 2009 16:03:04 +0000 Subject: [PATCH] Notice fix. Only return variable references by reference. git-svn-id: http://svn.automattic.com/wordpress/trunk@12517 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/post.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/wp-includes/post.php b/wp-includes/post.php index 509a5dcfa1..efa616745d 100644 --- a/wp-includes/post.php +++ b/wp-includes/post.php @@ -2400,8 +2400,10 @@ function &get_page_children($page_id, $pages) { */ function &get_page_hierarchy( &$pages, $page_id = 0 ) { - if ( empty( $pages ) ) - return null; + if ( empty( $pages ) ) { + $result = null; + return $result; + } $children = array(); foreach ( (array) $pages as $p ) {