Make WordPress Core


Ignore:
Timestamp:
11/14/2008 11:01:16 PM (18 years ago)
Author:
ryan
Message:

Notice fixes from DD32. see #7509

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/bookmark.php

    r9659 r9699  
    3535        $_POST['link_image'] = wp_specialchars( $_POST['link_image'] );
    3636        $_POST['link_rss'] = clean_url($_POST['link_rss']);
    37         if ( 'N' != $_POST['link_visible'] )
     37        if ( !isset($_POST['link_visible']) || 'N' != $_POST['link_visible'] )
    3838                $_POST['link_visible'] = 'Y';
    3939
    … …  
    177177
    178178        // Make sure we set a valid category
    179         if ( 0 == count( $link_category ) || !is_array( $link_category ) ) {
     179        if ( ! isset( $link_category ) ||0 == count( $link_category ) || !is_array( $link_category ) ) {
    180180                $link_category = array( get_option( 'default_link_category' ) );
    181181        }
Note: See TracChangeset for help on using the changeset viewer.