diff options
author | Friendika <info@friendika.com> | 2011-10-25 00:32:28 -0700 |
---|---|---|
committer | Friendika <info@friendika.com> | 2011-10-25 00:32:28 -0700 |
commit | 0b55a7a70328f716dcf2d51c3c757b2b3f76f7a0 (patch) | |
tree | 508455ba1cc13f10a4091eaad90d9757eca1cb30 /boot.php | |
parent | ae12074337c6f5465c8abab8b3205daeb8797a0b (diff) | |
download | volse-hubzilla-0b55a7a70328f716dcf2d51c3c757b2b3f76f7a0.tar.gz volse-hubzilla-0b55a7a70328f716dcf2d51c3c757b2b3f76f7a0.tar.bz2 volse-hubzilla-0b55a7a70328f716dcf2d51c3c757b2b3f76f7a0.zip |
only notify for events that are starting soon - ignore long-running events that are in progress
Diffstat (limited to 'boot.php')
-rw-r--r-- | boot.php | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -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)) { |