Index: wp-includes/comment.php
===================================================================
--- wp-includes/comment.php	(revision 9338)
+++ wp-includes/comment.php	(working copy)
@@ -1488,7 +1488,7 @@
  * @return object
  */
 function _close_comments_for_old_posts( $posts ) {
-	if ( !is_single() || !get_option('close_comments_for_old_posts') )
+	if ( empty($posts) || !is_single() || !get_option('close_comments_for_old_posts') )
 		return $posts;
 
 	$days_old = (int) get_option('close_comments_days_old');