### Eclipse Workspace Patch 1.0
#P wordpress-trunk
Index: wp-comments-post.php
===================================================================
--- wp-comments-post.php	(revision 11974)
+++ wp-comments-post.php	(working copy)
@@ -17,7 +17,7 @@
 
 nocache_headers();
 
-$comment_post_ID = (int) $_POST['comment_post_ID'];
+$comment_post_ID = isset ($_POST['comment_post_ID']) ? (int) $_POST['comment_post_ID'] : null;
 
 $status = $wpdb->get_row( $wpdb->prepare("SELECT post_status, comment_status FROM $wpdb->posts WHERE ID = %d", $comment_post_ID) );
 
