From 0b55a7a70328f716dcf2d51c3c757b2b3f76f7a0 Mon Sep 17 00:00:00 2001 From: Friendika Date: Tue, 25 Oct 2011 00:32:28 -0700 Subject: [PATCH] only notify for events that are starting soon - ignore long-running events that are in progress --- boot.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/boot.php b/boot.php index 636062136c..45e02d1ed8 100644 --- a/boot.php +++ b/boot.php @@ -1046,11 +1046,10 @@ function get_events() { $bd_short = t('F d'); $r = q("SELECT `event`.* FROM `event` - WHERE `event`.`uid` = %d AND `type` != 'birthday' AND `start` < '%s' AND `finish` > '%s' + WHERE `event`.`uid` = %d AND `type` != 'birthday' AND `start` < '%s' ORDER BY `start` DESC ", intval(local_user()), - dbesc(datetime_convert('UTC','UTC','now + 6 days')), - dbesc(datetime_convert('UTC','UTC','now')) + dbesc(datetime_convert('UTC','UTC','now + 6 days')) ); if($r && count($r)) {