--- template-functions-post.php	Tue Mar  8 12:48:47 2005
+++ template-functions-post.php.post_custom.fixed	Tue Mar  8 12:52:39 2005
@@ -234,6 +234,8 @@
 }
 
 function post_custom( $key = '' ) {
+	global $id, $post_meta_cache;
+	
 	if ( 1 == count($post_meta_cache[$id][$key]) ) return $post_meta_cache[$id][$key][0];
 	else return $post_meta_cache[$id][$key];
 }

