Make WordPress Core


Ignore:
Timestamp:
01/27/2006 07:22:55 PM (19 years ago)
Author:
ryan
Message:

Make sure we have an array. Props David House. fixes #2344

File:
1 edited

Legend:

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

    r3487 r3489  
    461461AND meta_key = '$key' AND meta_value = '$value'");
    462462        $cache_key = $post_meta_cache['$post_id'][$key];
    463         foreach ( $cache_key as $index => $data )
     463        if ($cache_key) foreach ( $cache_key as $index => $data )
    464464            if ( $data == $value )
    465465                unset($post_meta_cache['$post_id'][$key][$index]);
Note: See TracChangeset for help on using the changeset viewer.