Notice fix. Only return variable references by reference.

git-svn-id: https://develop.svn.wordpress.org/trunk@12517 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Peter Westwood 2009-12-23 16:03:04 +00:00
parent 1955a840a1
commit f47ebc68e4
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 ) {