Index: wp-includes/template-functions-post.php
===================================================================
--- wp-includes/template-functions-post.php	(revision 3378)
+++ wp-includes/template-functions-post.php	(working copy)
@@ -198,6 +198,7 @@
 	if ( isset($post_meta_cache[$id]) ) {
 		return $post_meta_cache[$id];
 	} else {
+		echo 'dbing';
 		if ( $meta_list = $wpdb->get_results("SELECT post_id, meta_key, meta_value FROM $wpdb->postmeta	WHERE post_id = '$id' ORDER BY post_id, meta_key", ARRAY_A) ) {
 			// Change from flat structure to hierarchical:
 			$post_meta_cache = array();
@@ -234,7 +235,11 @@
 function get_post_custom_values($key='') {
 	global $id, $post_meta_cache;
 
-	return $post_meta_cache[$id][$key];
+	if (empty($key)) {
+		return $post_meta_cache[$id];
+	} else {
+		return get_post_custom();
+	}
 }
 
 

