Back to no calendar display if no posts
git-svn-id: http://svn.automattic.com/wordpress/trunk@433 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
240c3ea9d8
commit
977db664f8
|
@ -60,8 +60,7 @@ require_once($abspath.$b2inc.'/b2vars.php');
|
||||||
if (!$posts) {
|
if (!$posts) {
|
||||||
$gotsome = $wpdb->get_var("SELECT ID from $tableposts WHERE post_status = 'publish' AND post_category > 0 ORDER BY post_date DESC LIMIT 1");
|
$gotsome = $wpdb->get_var("SELECT ID from $tableposts WHERE post_status = 'publish' AND post_category > 0 ORDER BY post_date DESC LIMIT 1");
|
||||||
if (!$gotsome)
|
if (!$gotsome)
|
||||||
// if all else fails, just show this month's calendar
|
return;
|
||||||
$calendar = date('Ym');
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$w = $HTTP_GET_VARS['w'];
|
$w = $HTTP_GET_VARS['w'];
|
||||||
|
|
Loading…
Reference in New Issue