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

git-svn-id: http://svn.automattic.com/wordpress/trunk@3489 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2006-01-27 19:22:55 +00:00
parent a225d305fa
commit a191df007e
1 changed files with 1 additions and 1 deletions

View File

@ -460,7 +460,7 @@ AND meta_key = '$key'");
$wpdb->query("DELETE FROM $wpdb->postmeta WHERE post_id = '$post_id'
AND meta_key = '$key' AND meta_value = '$value'");
$cache_key = $post_meta_cache['$post_id'][$key];
foreach ( $cache_key as $index => $data )
if ($cache_key) foreach ( $cache_key as $index => $data )
if ( $data == $value )
unset($post_meta_cache['$post_id'][$key][$index]);
}