Index: functions.php
===================================================================
--- functions.php	(revision 2681)
+++ functions.php	(working copy)
@@ -391,7 +391,9 @@
 
 function get_post_meta($post_id, $key, $single = false) {
 	global $wpdb, $post_meta_cache;
-
+	
+	if (!$post_id) return;
+	
 	if (isset($post_meta_cache[$post_id][$key])) {
 		if ($single) {
 			return $post_meta_cache[$post_id][$key][0];
