]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-includes/post.php
Wordpress 2.9.2-scripts
[autoinstalls/wordpress.git] / wp-includes / post.php
index f0427c16d33c6d6be0f7e3c87fa1cd99c307ef2a..2e9807138076d568331cd17fbc7dd4de64b3a8bd 100644 (file)
@@ -2391,8 +2391,10 @@ function &get_page_children($page_id, $pages) {
  */
 function &get_page_hierarchy( &$pages, $page_id = 0 ) {
 
-       if ( empty( $pages ) )
-               return null;
+       if ( empty( $pages ) ) {
+               $return = array();
+               return $return;
+       }
 
        $children = array();
        foreach ( (array) $pages as $p ) {