WordPress.org

Make WordPress Core

Changeset 8647


Ignore:
Timestamp:
08/14/08 20:36:09 (7 years ago)
Author:
ryan
Message:

Notice fix. see #7509

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/post.php

    r8646 r8647  
    19051905function &get_page(&$page, $output = OBJECT, $filter = 'raw') { 
    19061906    if ( empty($page) ) { 
    1907         if ( isset( $GLOBALS['page'] ) && isset( $GLOBALS['page']->ID ) ) 
     1907        if ( isset( $GLOBALS['page'] ) && isset( $GLOBALS['page']->ID ) ) { 
    19081908            return get_post($GLOBALS['page'], $output, $filter); 
    1909         else 
    1910             return null; 
     1909        } else { 
     1910            $page = null; 
     1911            return $page; 
     1912        } 
    19111913    } 
    19121914 
Note: See TracChangeset for help on using the changeset viewer.