From 323a7e4c9c96ae2101dacf2f6c06197bd83fbecf Mon Sep 17 00:00:00 2001 From: Friendika Date: Tue, 25 Oct 2011 00:36:23 -0700 Subject: [PATCH] need a lower bound for events --- boot.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/boot.php b/boot.php index 45e02d1ed8..32ed3e40a3 100644 --- a/boot.php +++ b/boot.php @@ -1046,10 +1046,11 @@ function get_events() { $bd_short = t('F d'); $r = q("SELECT `event`.* FROM `event` - WHERE `event`.`uid` = %d AND `type` != 'birthday' AND `start` < '%s' + WHERE `event`.`uid` = %d AND `type` != 'birthday' AND `start` < '%s' AND `start` > '%s' ORDER BY `start` DESC ", intval(local_user()), - dbesc(datetime_convert('UTC','UTC','now + 6 days')) + dbesc(datetime_convert('UTC','UTC','now + 6 days')), + dbesc(datetime_convert('UTC','UTC','now - 1 days')) ); if($r && count($r)) {