Make WordPress Core


Ignore:
Timestamp:
02/22/2008 05:43:56 PM (16 years ago)
Author:
ryan
Message:

Notice fixes from nbachiyski. fixes #5961

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/media-upload.php

    r6659 r6983  
    1212
    1313// IDs should be integers
    14 $ID = (int) $ID;
    15 $post_id = (int) $post_id;
     14$ID = isset($ID)? (int) $ID : 0;
     15$post_id = isset($post_id)? (int) $post_id : 0;
    1616
    1717// Require an ID for the edit screen
    18 if ( $action == 'edit' && !$ID )
     18if ( isset($action) && $action == 'edit' && !$ID )
    1919    wp_die(__("You are not allowed to be here"));
    2020
Note: See TracChangeset for help on using the changeset viewer.