Notice fix. Only return variable references by reference.

git-svn-id: http://svn.automattic.com/wordpress/trunk@12517 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
westi 2009-12-23 16:03:04 +00:00
parent 0aaf0d83af
commit f83b446117
1 changed files with 4 additions and 2 deletions

View File

@ -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 ) {