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:
parent
1955a840a1
commit
f47ebc68e4
@ -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 ) {
|
||||
|
Loading…
Reference in New Issue
Block a user