WordPress.org

Make WordPress Core

Changeset 10225


Ignore:
Timestamp:
12/18/08 22:26:03 (5 years ago)
Author:
ryan
Message:

Notice fix from apokalyptik

File:
1 edited

Legend:

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

    r10150 r10225  
    10421042    foreach( $del_options as $page => $keys ) { 
    10431043        foreach( $keys as $key ) { 
    1044             $pos = array_search( $key, $whitelist_options[ $page ] ); 
    1045             if( $pos !== false ) 
    1046                 unset( $whitelist_options[ $page ][ $pos ] ); 
     1044            if ( isset($whitelist_options[ $page ]) && is_array($whitelist_options[ $page ]) ) { 
     1045                $pos = array_search( $key, $whitelist_options[ $page ] ); 
     1046                if( $pos !== false ) 
     1047                    unset( $whitelist_options[ $page ][ $pos ] ); 
     1048            } 
    10471049        } 
    10481050    } 
Note: See TracChangeset for help on using the changeset viewer.