Changeset 3489

Show
Ignore:
Timestamp:
01/27/06 19:22:55 (3 years ago)
Author:
ryan
Message:

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

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • 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]);