From 359ec6f7109409ea4398b0b30f09a78ef2dac6e8 Mon Sep 17 00:00:00 2001 From: donncha Date: Tue, 7 Mar 2006 16:17:35 +0000 Subject: WP Merge git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@538 7be80a69-a1ef-0310-a953-fb0f7c49ff36 --- wp-inst/wp-includes/classes.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'wp-inst/wp-includes/classes.php') diff --git a/wp-inst/wp-includes/classes.php b/wp-inst/wp-includes/classes.php index ba7988a..03d74bb 100644 --- a/wp-inst/wp-includes/classes.php +++ b/wp-inst/wp-includes/classes.php @@ -635,7 +635,7 @@ class WP_Query { $this->posts = $wpdb->get_results($this->request); // Check post status to determine if post should be displayed. - if ($this->is_single || $this->is_page) { + if ( !empty($this->posts) && ($this->is_single || $this->is_page) ) { $status = get_post_status($this->posts[0]); //$type = get_post_type($this->posts[0]); if ( ('publish' != $status) ) { @@ -1587,7 +1587,6 @@ class WP { } function send_headers() { - global $current_user; @header('X-Pingback: '. get_bloginfo('pingback_url')); if ( is_user_logged_in() ) nocache_headers(); -- cgit