Make WordPress Core


Ignore:
Timestamp:
09/21/2008 08:41:25 PM (17 years ago)
Author:
westi
Message:

Notice fixes see #7509 props DD32 and jacobsantos.

File:
1 edited

Legend:

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

    r8901 r8944  
    178178    // Use $_GET instead of is_ since they can override each other
    179179    $h2_author = '';
    180     $_GET['author'] = (int) $_GET['author'];
     180    $_GET['author'] = isset( $_GET['author'] ) ? (int) $_GET['author'] : 0;
    181181    if ( $_GET['author'] != 0 ) {
    182182        if ( $_GET['author'] == '-' . $user_ID ) { // author exclusion
Note: See TracChangeset for help on using the changeset viewer.