]> git.mxchange.org Git - friendica.git/commitdiff
only notify for events that are starting soon - ignore long-running events that are...
authorFriendika <info@friendika.com>
Tue, 25 Oct 2011 07:32:28 +0000 (00:32 -0700)
committerFriendika <info@friendika.com>
Tue, 25 Oct 2011 07:32:28 +0000 (00:32 -0700)
boot.php

index 636062136cc12d4220bb9e7536b9e1b12cdae12f..45e02d1ed86a9d924dac5d1c47659c2d74ea48d4 100644 (file)
--- 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)) {