Make WordPress Core


Ignore:
Timestamp:
05/02/2010 06:02:54 AM (14 years ago)
Author:
markjaquith
Message:

Make sure alloptions is an array before we try to use unset() on its alleged key

File:
1 edited

Legend:

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

    r14211 r14330  
    638638        if ( 'yes' == $row->autoload ) {
    639639            $alloptions = wp_load_alloptions();
    640             if ( isset( $alloptions[$option] ) ) {
     640            if ( is_array( $alloptions ) && isset( $alloptions[$option] ) ) {
    641641                unset( $alloptions[$option] );
    642642                wp_cache_set( 'alloptions', $alloptions, 'options' );
Note: See TracChangeset for help on using the changeset viewer.