From c175fd9ddb58e71b59563e98738bfcda598305e4 Mon Sep 17 00:00:00 2001 From: Dougal Campbell Date: Wed, 8 Oct 2003 14:06:03 +0000 Subject: [PATCH] Back to no calendar display if no posts git-svn-id: https://develop.svn.wordpress.org/trunk@433 602fd350-edb4-49c9-b593-d223f7449a82 --- b2calendar.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/b2calendar.php b/b2calendar.php index ad581b5d31..53d7f36c7d 100644 --- a/b2calendar.php +++ b/b2calendar.php @@ -60,8 +60,7 @@ require_once($abspath.$b2inc.'/b2vars.php'); 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"); if (!$gotsome) - // if all else fails, just show this month's calendar - $calendar = date('Ym'); + return; } $w = $HTTP_GET_VARS['w'];