Add missing join to page by day query.

git-svn-id: http://svn.automattic.com/wordpress/trunk@1613 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
rboren 2004-09-06 03:03:08 +00:00
parent e7dfbd4c39
commit 297af23056
1 changed files with 1 additions and 1 deletions

View File

@ -490,7 +490,7 @@ class WP_Query {
$pgstrt = (intval($page) -1) * $q['posts_per_page'] . ', ';
$limits = 'LIMIT '.$pgstrt.$q['posts_per_page'];
} elseif ($q['what_to_show'] == 'days') {
$post_dates = $wpdb->get_col('SELECT post_date FROM ' . $wpdb->posts . ' WHERE (1=1) ' . $where . ' ORDER BY post_date DESC');
$post_dates = $wpdb->get_col('SELECT post_date FROM ' . $wpdb->posts . "$join WHERE (1=1) " . $where . ' ORDER BY post_date DESC');
$number_of_days = $q['posts_per_page'];
$page_number = -1;
$day_number = $number_of_days;